You are here

function panelizer_administer_entity_bundle in Panelizer 7.2

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

Access callback to see if a user can administer a particular bundle.

5 calls to panelizer_administer_entity_bundle()
PanelizerEntityDefault::add_bundle_setting_form in plugins/entity/PanelizerEntityDefault.class.php
Add the panelizer settings form to a single entity bundle config form.
PanelizerEntityNode::hook_page_alter in plugins/entity/PanelizerEntityNode.class.php
panelizer_has_choice_callback in ./panelizer.module
Menu callback to determine if a type has a choice of defaults.
panelizer_has_no_choice_callback in ./panelizer.module
Menu callback to determine if a type has a choice of defaults.
panelizer_is_panelized in ./panelizer.module
Menu callback to determine if a type has a choice of defaults.

File

./panelizer.module, line 645
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_entity_bundle($handler, $bundle) {
  if (is_string($handler)) {
    $handler = panelizer_entity_plugin_get_handler($handler);
  }
  return user_access('administer panelizer') || user_access("administer panelizer {$handler->entity_type} {$bundle} defaults");
}