How to show a block on user profile edit page ? I am trying to display a block on an user edit page (example: user/123/edit/custom_url, but for some reason, I can't seem to get it working. Any help is appreciated. 

I tried this, but this isn't working: 

&lt;?php
global $user;
if (arg(0) == 'user' &amp;&amp; $user-&gt;uid == arg(1) &amp;&amp; arg(2) == 'edit' &amp;&amp; arg(3) == 'custom_url' ){
  return TRUE;
}
else {
  return FALSE;
}
?&gt;
Using the block ui, you can select the visibility of block using user/*/edit/custom_url. The star is a wild card and will give you the ability to place blocks on pages that have a variable in the path.