Display block on two different pages I'd like to view my block on pages where the content type = booking and where the address is node/add/booking (basically add, edit and view nodes), how can I accomplish this? So far my code only shows on pages where content type = booking (i.e. view and edit nodes).

&lt;?php
// Change the type to the one you want to match on
$desired_type = 'booking';
if ( arg(0) == 'node' &amp;&amp; is_numeric(arg(1)) ) {
  $node = node_load(arg(1));
   return $node-&gt;type == $desired_type;
}

return FALSE;
?&gt;
You can do it like this. It uses exactly the same principles as your existing if statement.

// Change the type to the one you want to match on
$desired_type = 'booking';
if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1))) {
  $node = node_load(arg(1));
  return $node-&gt;type == $desired_type;
}
elseif (arg(0) == 'node' &amp;&amp; arg(1) == 'add' &amp;&amp; arg(2) == $desired_type) {
  return TRUE;
}
return FALSE;