Tuesday, June 19, 2012

Drupal form alter Example

As per my requirement i need to change my node edit message

Find the below example

function mymodule_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'story_node_form') {    
    drupal_set_message(t('Editing a story node!'));
  }  }

No comments:

Post a Comment