panels_mini.inc in Panels 7.3
Provides a panels_storage plugin for mini panels.
File
panels_mini/plugins/panels_storage/panels_mini.incView source
<?php
/**
* @file
* Provides a panels_storage plugin for mini panels.
*/
// Plugin definition.
$plugin = array(
'access callback' => 'panels_mini_panels_storage_access',
);
/**
* Access callback for panels storage.
*/
function panels_mini_panels_storage_access($storage_type, $storage_id, $op, $account) {
if ($op == 'create') {
return user_access('create mini panels', $account);
}
return user_access('administer mini panels', $account);
}
Functions
Name | Description |
---|---|
panels_mini_panels_storage_access | Access callback for panels storage. |