function panelizer_permission in Panelizer 7.2
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_permission()
- 7 panelizer.module \panelizer_permission()
Implements hook_permission().
File
- ./
panelizer.module, line 15 - The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.
Code
function panelizer_permission() {
$items = array(
'administer panelizer' => array(
'title' => t('administer panelizer'),
'description' => t('Fully administer panelizer and all panelizer settings.'),
),
);
// Delegate.
foreach (panelizer_get_plugins_with_hook('permission') as $handler) {
$handler
->hook_permission($items);
}
return $items;
}