function panelizer_has_default in Panelizer 6
Same name and namespace in other branches
- 7 panelizer.module \panelizer_has_default()
Determine if a given thing has a default panel.
3 calls to panelizer_has_default()
- panelizer_edit_node_callback in ./
panelizer.module - Determine if the current user has access to edit panelizer info on a node.
- panelizer_edit_node_settings_page in includes/
node.inc - Page to edit basic settings on a panelized node.
- _panelizer_load_default in ./
panelizer.module - Load a panelizer default object.
File
- ./
panelizer.module, line 356 - panelizer.module
Code
function panelizer_has_default($type, $key) {
$settings = variable_get('panelizer_defaults', array());
return !empty($settings[$type][$key]['status']) && !empty($settings[$type][$key]['default']);
}