function page_manager_term_view_admin_summary in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/plugins/tasks/term_view.inc \page_manager_term_view_admin_summary()
Provide a nice administrative summary of the page so an admin can see at a glance what this page does and how it is configured.
1 string reference to 'page_manager_term_view_admin_summary'
- page_manager_term_view_page_manager_tasks in page_manager/
plugins/ tasks/ term_view.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- page_manager/
plugins/ tasks/ term_view.inc, line 237 - Handle the 'term view' override task.
Code
function page_manager_term_view_admin_summary($task, $subtask) {
$task_name = page_manager_make_task_name($task['name'], $subtask['name']);
$rows[] = array(
array(
'class' => t('page-summary-label'),
'data' => t('Path'),
),
array(
'class' => t('page-summary-data'),
'data' => 'taxonomy/term/%term',
),
array(
'class' => t('page-summary-operation'),
'data' => '',
),
);
$rows[] = array(
array(
'class' => t('page-summary-label'),
'data' => t('Access'),
),
array(
'class' => t('page-summary-data'),
'data' => t('This page is publicly accessible.'),
),
array(
'class' => t('page-summary-operation'),
'data' => '',
),
);
$menu = t('No menu entry');
$rows[] = array(
array(
'class' => t('page-summary-label'),
'data' => t('Menu'),
),
array(
'class' => t('page-summary-data'),
'data' => $menu,
),
array(
'class' => t('page-summary-operation'),
'data' => '',
),
);
if (variable_get('page_manager_term_view_type', 'multiple') == 'multiple') {
$message = t('Multiple terms may be used, separated by , or +.');
}
else {
$message = t('Only a single term may be used.');
}
$rows[] = array(
array(
'class' => t('page-summary-label'),
'data' => t('%term'),
),
array(
'class' => t('page-summary-data'),
'data' => $message,
),
array(
'class' => t('page-summary-operation'),
'data' => '',
),
);
if (variable_get('page_manager_taxonomy_breadcrumb', TRUE)) {
$message = t('Breadcrumb trail will contain taxonomy term hierarchy');
}
else {
$message = t('Breadcrumb trail will not contain taxonomy term hiearchy.');
}
$rows[] = array(
array(
'class' => t('page-summary-label'),
'data' => t('Breadcrumb'),
),
array(
'class' => t('page-summary-data'),
'data' => $message,
),
array(
'class' => t('page-summary-operation'),
'data' => '',
),
);
$output = theme('table', array(), $rows, array(
'id' => 'page-manager-page-summary',
));
return $output;
}