function panels_everywhere_context_create_managed_page in Panels Everywhere 7
Same name and namespace in other branches
- 6 plugins/contexts/managed_page.inc \panels_everywhere_context_create_managed_page()
It's important to remember that $conf is optional here, because contexts are not always created from the UI.
1 string reference to 'panels_everywhere_context_create_managed_page'
- managed_page.inc in plugins/
contexts/ managed_page.inc
File
- plugins/
contexts/ managed_page.inc, line 22
Code
function panels_everywhere_context_create_managed_page($empty, $data = NULL, $conf = FALSE) {
// The input is expected to be an object containing 'title' and 'content'.
$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;
}
}