function taxonomy_menu_taxonomy_menu_options in Taxonomy menu 6.3
Same name and namespace in other branches
- 6.2 taxonomy_menu.module \taxonomy_menu_taxonomy_menu_options()
- 7 taxonomy_menu.module \taxonomy_menu_taxonomy_menu_options()
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. option_type - GROUP/TERM_SET/PATH taxonomy_menu_path - if path is the option_type then this is required and is callback function any other form element
File
- ./
taxonomy_menu.module, line 306 - It Generates menu links for all selected taxonomy terms
Code
function taxonomy_menu_taxonomy_menu_options() {
$options['display_num'] = array(
'#title' => t('Display Number of Nodes'),
'#description' => t('Display the number of Items per taxonomy Terms. Will not show up for vocabulary menu items.'),
'default' => FALSE,
'option_type' => 'TERM_SET',
);
$options['hide_empty_terms'] = array(
'#title' => t('Hide Empty Terms'),
'#description' => t('Hide terms with no nodes attached to them.'),
'default' => FALSE,
'option_type' => 'GROUP',
);
$options['voc_item'] = array(
'#title' => t('Item for Vocabulary'),
'#description' => t("Shall the vocabulary have it's own item."),
'default' => TRUE,
'option_type' => 'TERM_SET',
);
$options['expanded'] = array(
'#title' => t('Auto Expand Menu Item'),
'#description' => t('Sets the expand setting to TRUE'),
'default' => TRUE,
'option_type' => 'GROUP',
);
$options['display_descendants'] = array(
'#title' => t('Display Descendants'),
'default' => FALSE,
'option_type' => 'TERM_SET',
);
$options['end_all'] = array(
'#title' => t("Use 'all' at the end of URL"),
'default' => TRUE,
'#description' => t('This changes tid+tid+tid to "All" in term when Dispaly Decendants is selected. <br />
Only used if Menu Path Type is "Default path". <br />
Works with default taxonomy page.'),
'option_type' => 'PATH',
'taxonomy_menu_path' => 'taxonomy_menu_path_default',
);
return $options;
}