function nodesymlinks_form_alter in NodeSymlinks 6
Implementation of hook_form_alter(). Adds nodesymlinks item fields to the node form.
File
- ./
nodesymlinks.module, line 375 - 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_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']) && $form['#node']->type . '_node_form' == $form_id && isset($form['menu'])) {
_nodesymlinks_include();
_nodesymlinks_form_alter($form, $form_state, $form_id);
}
}