You are here

panelizer_defaults.inc in Panelizer 7.3

Same filename and directory in other branches
  1. 7.2 plugins/export_ui/panelizer_defaults.inc

File

plugins/export_ui/panelizer_defaults.inc
View source
<?php

$plugin = array(
  'schema' => 'panelizer_defaults',
  'access' => 'administer panelizer',
  'menu' => array(
    'menu prefix' => 'admin/structure/panelizer/%panelizer_handler',
    'menu item' => '%',
    'menu title' => 'Panelizer',
    'menu description' => 'Add, edit or delete custom content layouts.',
    'items' => array(),
  ),
  'title singular' => t('panelizer default'),
  'title singular proper' => t('Panelizer default'),
  'title plural' => t('panelizer defaults'),
  'title plural proper' => t('Panelizer defaults'),
  'handler' => array(
    'class' => 'panelizer_defaults_ui',
  ),
  'allowed operations' => array(),
);

// Add our possibly variable operations.
foreach (panelizer_operations() as $path => $operation) {
  $location = isset($operation['ui path']) ? $operation['ui path'] : $path;
  $plugin['menu']['items'][$location] = array(
    'path' => 'list/%ctools_export_ui/' . $path,
  );
  $plugin['allowed operations'][$location] = array(
    'title' => t($operation['menu title']),
  );
}
$plugin['menu']['items']['access'] = array(
  'path' => 'list/%ctools_export_ui/access',
);
$plugin['allowed operations']['access'] = array(
  'title' => t('Access'),
);