managed_page.inc in Panels Everywhere 6
File
plugins/contexts/managed_page.inc
View source
<?php
$plugin = array(
'title' => t('Managed page'),
'description' => t('A page manager page.'),
'context' => 'panels_everywhere_context_create_managed_page',
'keyword' => 'managed_page',
'no ui' => TRUE,
'context name' => 'managed_page',
);
function panels_everywhere_context_create_managed_page($empty, $data = NULL, $conf = FALSE) {
$context = new ctools_context('managed_page');
$context->plugin = 'managed_page';
if ($empty) {
return $context;
}
if ($data !== FALSE) {
$context->data = $data;
$context->title = t('Managed page');
return $context;
}
}