I would like to execute a bit of PHP code whenever users of a certain type, i.e. "site managers" (but no others), push on the "Save button". I am especially looking for the PLACE (i.e. the file) in which this code is to be put, and how I should name the function with the code which I would like to execute. Any help in this respect would be very much appreciated!!

(using Drupal 5.x)

Comments

modul’s picture

Still hoping for some wise instructions here... To make it more concrete, this is what I'm looking for:

if boss_of_the_site clicks "Submit text" or "Save edited text"
  do some nifty PHP code
else
  do nothing
endif
davidhernandez’s picture

Sounds like you'll need a small custom module and use hook_save - http://api.drupal.org/api/function/hook_submit/5