function panelizer_has_choice in Panelizer 6
Same name and namespace in other branches
- 7 panelizer.module \panelizer_has_choice()
Determine if a given thing can choose from a list of defaults.
1 call to panelizer_has_choice()
- panelizer_has_choice_callback in ./
panelizer.module - Menu callback to determine if a type has a choice of defaults.
File
- ./
panelizer.module, line 364 - panelizer.module
Code
function panelizer_has_choice($type, $key) {
$settings = variable_get('panelizer_defaults', array());
return !empty($settings[$type][$key]['status']) && !empty($settings[$type][$key]['default']) && !empty($settings[$type][$key]['choice']);
}