function panelizer_has_choice_callback in Panelizer 6
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_has_choice_callback()
- 7 panelizer.module \panelizer_has_choice_callback()
- 7.2 panelizer.module \panelizer_has_choice_callback()
Menu callback to determine if a type has a choice of defaults.
We use this to make sure the right tabs appear.
1 string reference to 'panelizer_has_choice_callback'
- panelizer_menu in ./
panelizer.module - Implementation of hook_menu().
File
- ./
panelizer.module, line 243 - panelizer.module
Code
function panelizer_has_choice_callback($type, $key, $name = NULL) {
if (!user_access('administer panelizer')) {
return FALSE;
}
// Check to see if $name is valid
if ($name && !panelizer_load_default($type, $key, $name)) {
return FALSE;
}
return panelizer_has_choice($type, $key);
}