function _taxonomy_menu_trails_defaults in Taxonomy Menu Trails 7.2
Same name and namespace in other branches
- 7 taxonomy_menu_trails.module \_taxonomy_menu_trails_defaults()
Returns default Taxonomy Menu Trails settings for bundle
Return value
array
1 call to _taxonomy_menu_trails_defaults()
- _taxonomy_menu_trails_get_settings in ./
taxonomy_menu_trails.module - Gets settings for specified entity type and bundle name.
File
- ./
taxonomy_menu_trails.module, line 44 - Changes menu trail of current entity to its term's menu item.
Code
function _taxonomy_menu_trails_defaults() {
$defaults = array(
'selection_method' => 'first',
'only_without_menu' => FALSE,
'set_breadcrumb' => 'if_empty',
'term_path' => 'default',
'term_path_patterns' => array(),
'instances' => array(),
'paths_ui' => '',
'trail_per_menu' => FALSE,
);
if (module_exists('i18n_taxonomy')) {
$defaults += array(
'terms_with_current_language' => FALSE,
);
}
return $defaults;
}