1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
$plugin = array(
|
4 |
|
|
'schema' => 'panelizer_defaults',
|
5 |
|
|
'access' => 'administer panelizer',
|
6 |
|
|
|
7 |
|
|
'menu' => array(
|
8 |
|
|
'menu prefix' => 'admin/config/content/panelizer/%panelizer_handler',
|
9 |
|
|
'menu item' => '%',
|
10 |
|
|
'menu title' => 'Panelizer',
|
11 |
|
|
'menu description' => 'Add, edit or delete custom content layouts.',
|
12 |
|
|
'items' => array(),
|
13 |
|
|
),
|
14 |
|
|
|
15 |
|
|
'title singular' => t('panelizer default'),
|
16 |
|
|
'title singular proper' => t('Panelizer default'),
|
17 |
|
|
'title plural' => t('panelizer defaults'),
|
18 |
|
|
'title plural proper' => t('Panelizer defaults'),
|
19 |
|
|
|
20 |
|
|
'handler' => array(
|
21 |
|
|
'class' => 'panelizer_defaults_ui',
|
22 |
|
|
),
|
23 |
|
|
|
24 |
|
|
'allowed operations' => array(),
|
25 |
|
|
);
|
26 |
|
|
|
27 |
|
|
// Add our possibly variable operations.
|
28 |
|
|
foreach (panelizer_operations() as $path => $operation) {
|
29 |
|
|
$location = isset($operation['ui path']) ? $operation['ui path'] : $path;
|
30 |
|
|
$plugin['menu']['items'][$location] = array('path' => 'list/%ctools_export_ui/' . $path);
|
31 |
|
|
$plugin['allowed operations'][$location] = array('title' => t($operation['menu title']));
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
$plugin['menu']['items']['access'] = array('path' => 'list/%ctools_export_ui/access');
|
35 |
|
|
$plugin['allowed operations']['access'] = array('title' => t('Access'));
|