translated label to display in the interface * - handler => full name of a handler function to use, with the signature * ...(&$form, &$form_state, &$item [, $arg_1, ..., $arg_n]) * - arguments => array of arg_name=>arg_value (optional), * each argument is passed to handler callback function. * - clean_menu_save_message => flag whether the existing message * "Your configuration has been saved" * should be removed (TRUE) or not (FALSE). * * @param $context Array * Array with context information. Currently the following key is used: * 'menu_name' => machine name of the menu the target types are assembled. * */ function hook_menu_item_target_types_alter(&$target_types, &$context) { $target_types['url'] = array( 'label' => t('URL'), 'handler' => 'content_menu_menu_form_handler_url', 'clean_menu_save_message' => TRUE ); } /** * Alter a menu item's form element in the menu item administration. * * @param $el Array The form element of the menu item to alter. */ function _content_menu_menu_item_element_alter(&$el) { module_load_include('inc', 'content_menu', 'content_menu.menu_admin'); _content_menu_menu_item_element_alter($el); }