function page_manager_page_summary
Print the summary information for a page.
1 string reference to 'page_manager_page_summary'
- page_manager_get_operations in page_manager/
page_manager.admin.inc - Take the operations array from a task and expand it.
File
-
page_manager/
page_manager.admin.inc, line 1845
Code
function page_manager_page_summary($form, &$form_state) {
$page = $form_state['page'];
$output = '';
/*
if (isset($form_state['subtask']['admin title'])) {
$form_state['title'] = $form_state['subtask']['admin title'];
}
*/
if (isset($form_state['subtask']['admin description'])) {
$output .= '<div class="description">' . $form_state['subtask']['admin description'] . '</div>';
}
$output .= page_manager_get_page_summary($page->task, $page->subtask);
if (!empty($page->handlers)) {
foreach ($page->handler_info as $id => $info) {
if ($info['changed'] & PAGE_MANAGER_CHANGED_DELETED) {
continue;
}
$handler = $page->handlers[$id];
$plugin = page_manager_get_task_handler($handler->handler);
$output .= '<div class="handler-summary">';
$output .= page_manager_get_handler_summary($plugin, $handler, $page);
$output .= '</div>';
}
}
else {
$output .= '<p>' . t('This page has no variants and thus no output of its own.') . '</p>';
}
$links = array(
array(
'title' => ' » ' . t('Add a new variant'),
'href' => page_manager_edit_url($page->task_name, array(
'actions',
'add',
)),
'html' => TRUE,
),
);
$output .= '<div class="links">' . theme('links', array(
'links' => $links,
)) . '</div>';
$form['markup'] = array(
'#markup' => $output,
);
return $form;
}