You are here

function nodesymlinks_form_node_form_alter in NodeSymlinks 7

Implements hook_form_FORM_ID_alter().

Adds nodesymlinks item fields to the node form.

File

./nodesymlinks.module, line 376
Node Symlinks allows creating duplicate menu links with unique id to all nodes. As a result all these duplicates have unique menu trails and breadcrumbs.

Code

function nodesymlinks_form_node_form_alter(&$form, &$form_state, $form_id) {

  // Check for node form and also check if 'menu' exists - some modules like
  // Menuless Nodetype or Content Type Menu are able to unset menu at certain
  // node types.
  if (isset($form['#node']) && isset($form['menu'])) {
    _nodesymlinks_include();
    _nodesymlinks_node_form_alter($form, $form_state, $form_id);
  }
}