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