function panelizer_has_choice in Panelizer 7
Same name and namespace in other branches
- 6 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 347 - panelize.module
Code
function panelizer_has_choice($type, $key) {
$settings = variable_get('panelizer_defaults_' . $type . '_' . $key, array());
return !empty($settings['status']) && !empty($settings['default']) && !empty($settings['choice']);
}