Drupal 6 hook_form_alter


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function mymodule_form_alter(&$form, $form_state, $form_id) {
  2. if ($form_id == 'story_node_form') {
  3. drupal_set_message(t('Editing a story node!'));
  4. }
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.