I have a block that appears on pages with a specific term, I'm using PHP code to do this.

But I also want to turn off the block's visibility on the Edit version of these pages... Since I'm already using php code to make the block visible, I can't use:
Show on every page except the listed pages. -- */edit

I'm wondering what php I can use to know whether or not it's the normal display of a node vs. the edit display of a node...

Thanks,

-Chris

Comments

nevets’s picture

You do not say what the PHP looks like so in general terms you want something like

if ( arg(0) == 'node' && is_numeric(arg(1)) && arg(2) != 'edit' ) {
   return TRUE;  // Not a node edit page
}