You are here

function panelizer_administer_panelizer_default in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 panelizer.module \panelizer_administer_panelizer_default()

Access callback to see if a user can administer a particular panelizer default.

2 string references to 'panelizer_administer_panelizer_default'
PanelizerEntityDefault::add_admin_links in plugins/entity/PanelizerEntityDefault.class.php
Helper function to add administrative menu items into an entity's already existing structure.
panelizer_admin_hook_menu in includes/admin.inc
Delegated hook_menu for admin

File

./panelizer.module, line 656
The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.

Code

function panelizer_administer_panelizer_default($handler, $bundle, $name) {
  if (is_string($handler)) {
    $handler = panelizer_entity_plugin_get_handler($handler);
  }
  $panelizer = $handler
    ->get_default_panelizer_object($bundle, $name);
  if (!$panelizer) {
    return FALSE;
  }
  return $handler
    ->access_default_panelizer_object($panelizer);
}