You are here

function node_field_form_alter in Node Field 7.2

Implements hook_form_alter().

File

./node_field.module, line 391
This module provide ability to add extra fields to any single node.

Code

function node_field_form_alter(&$form, &$form_state, $form_id) {
  if (isset($form['type']['#value']) && $form_id == $form['type']['#value'] . '_node_form' && $form['nid']['#value'] == NULL) {
    drupal_set_message(t('You can add custom extra fields after creating this node by going to the Tab "Node fields".'), 'status');
  }
}