You are here

function panelizer_has_default in Panelizer 7

Same name and namespace in other branches
  1. 6 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 339
panelize.module

Code

function panelizer_has_default($type, $key) {
  $settings = variable_get('panelizer_defaults_' . $type . '_' . $key, array());
  return !empty($settings['status']) && !empty($settings['default']);
}