function content_menu_menu_form_handler_node in Content Menu 7
Same name and namespace in other branches
- 8 content_menu.menu_admin.inc \content_menu_menu_form_handler_node()
Menu add item operation handler for a new node menu item.
1 string reference to 'content_menu_menu_form_handler_node'
- _content_menu_menu_item_target_types_alter in ./
content_menu.menu_admin.inc - Actual implementation for content_menu_menu_item_target_types_alter().
File
- ./
content_menu.menu_admin.inc, line 560 - Menu Management Workflow improvements.
Code
function content_menu_menu_form_handler_node($form, $form_state, $item, $type) {
$types = node_type_get_types();
drupal_set_message(t("You're about to create a new menu item with new %type content.", array(
'%type' => $types[$type]->name,
)));
drupal_set_message(t('Complete the process by filling out and saving the form below.'));
$type = str_replace("_", "-", $type);
drupal_goto('node/add/' . $type, array(
'query' => content_menu_assemble_query_string($item),
));
}