Project

General

Profile

Paste
Download (557 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / panels / plugins / panels_storage / page_manager.inc @ c06bd9a4

1
<?php
2

    
3
/**
4
 * @file
5
 * Provides a panels_storage plugin for page_manager.
6
 */
7

    
8
// Plugin definition.
9
$plugin = array(
10
  'access callback' => 'page_manager_panels_storage_access',
11
);
12

    
13
/**
14
 * Access callback for panels storage.
15
 */
16
function page_manager_panels_storage_access($storage_type, $storage_id, $op, $account) {
17
  // Only users with the 'use page manager' or administer page manager perms.
18
  return user_access('use page manager', $account) || user_access('administer page manager', $account) || user_access('use ipe with page manager', $account);
19
}