function taxonomy_menu_vocabulary_path_taxonomy_menu_options in Taxonomy menu 6.2
Implementation of hook_taxonomy_menu_options()
Return value
array Uses the value to set the variable taxonomy_menu_<value>_$vid $options[value] default - optional. this is what will be used if the varialbe is not set. if empty then FALSE is used #title - required. any other form element
File
- taxonomy_menu_vocabulary_path/
taxonomy_menu_vocabulary_path.module, line 18 - Adds a tad extra functionality to the new Taxonomy Menu.
Code
function taxonomy_menu_vocabulary_path_taxonomy_menu_options() {
$options['taxonomy_menu_vocabulary_path'] = array(
'#title' => t('Custom path for vocabulary'),
'#description' => t('Enter the path you would like to use for this vocabulary. Only used if menu path type is "Vocabulary path".'),
'default' => 'category',
'#type' => 'textfield',
'#weight' => -5,
);
$options['vocabulary_path_use_custom_path_for_term_menu_path'] = array(
'#title' => t('Use vocabulary path as base path'),
'#weight' => -4,
'#type' => 'checkbox',
'default' => '',
'#description' => t('Use the custom path for vocabulary as base path for term menu items. Only used if Menu path type is "Vocabulary path".'),
);
return $options;
}