function panelizer_has_choice_callback in Panelizer 7
Same name and namespace in other branches
- 6 panelizer.module \panelizer_has_choice_callback()
- 7.3 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 - Implements hook_menu().
File
- ./
panelizer.module, line 241 - panelize.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);
}