function 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 307

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' => array(
                'page-summary-label',
            ),
            'data' => t('Path'),
        ),
        array(
            'class' => array(
                'page-summary-data',
            ),
            'data' => 'taxonomy/term/%term',
        ),
        array(
            'class' => array(
                'page-summary-operation',
            ),
            'data' => '',
        ),
    );
    $rows[] = array(
        array(
            'class' => array(
                'page-summary-label',
            ),
            'data' => t('Access'),
        ),
        array(
            'class' => array(
                'page-summary-data',
            ),
            'data' => t('This page is publicly accessible.'),
        ),
        array(
            'class' => array(
                'page-summary-operation',
            ),
            'data' => '',
        ),
    );
    $menu = t('No menu entry');
    $rows[] = array(
        array(
            'class' => array(
                'page-summary-label',
            ),
            'data' => t('Menu'),
        ),
        array(
            'class' => array(
                'page-summary-data',
            ),
            'data' => $menu,
        ),
        array(
            'class' => array(
                'page-summary-operation',
            ),
            'data' => '',
        ),
    );
    if (page_manager_term_view_get_type() == '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' => array(
                'page-summary-label',
            ),
            'data' => t('%term'),
        ),
        array(
            'class' => array(
                'page-summary-data',
            ),
            'data' => $message,
        ),
        array(
            'class' => array(
                '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' => array(
                'page-summary-label',
            ),
            'data' => t('Breadcrumb'),
        ),
        array(
            'class' => array(
                'page-summary-data',
            ),
            'data' => $message,
        ),
        array(
            'class' => array(
                'page-summary-operation',
            ),
            'data' => '',
        ),
    );
    $output = theme('table', array(), $rows, array(
        'id' => 'page-manager-page-summary',
    ));
    return $output;
}