Hi,
How i can disable the create/edit node message at the top of the page, when creating new node or editing an existing node?

Thanks :)

Comments

netbabu’s picture

Quick and dirty method:

In page.tpl.php you can comment print $tabs or set some condition like this:

if(arg(2) == 'edit' || arg(1) == 'add') 
{

}
else
   print $tabs;

-Babu
Promote Drupal with Tshirts/merchandise: http://paramprojects.com/drupalstore
Drupal Projects showcase: http://paramprojects.com/website/drupal-servicesprojects

shaynl’s picture

Thanks but I can't find any "print $tabs" in my page.tpl.php…
I have " print $closure" in the end of the file but the message still appears when I comment it… :(

shaynl’s picture

how to do it?

kaakuu’s picture

What theme are you using? $tabs must be there.

shaynl’s picture

yes i can see $tabs but there is no print $tabs...
that's from my page.tpl.php:

if (!empty($tabs)) { echo $tabs.'<div class="cleared"></div>'; };

kaakuu’s picture

Though print and echo are not the same for your purpose you can "assume" it is the same. So commenting out this line will not give you the tabs anymore.

shaynl’s picture

it's not the $tabs line... it's this line:

if (!empty($messages)) { echo $messages; }

:)

shaynl’s picture

How I can set it off only on specific page?
Is there any module for that?

zyxware’s picture

You can disable specific messages on specific pages using the following module - http://drupal.org/project/disable_messages