function shortcut_set_admin

Menu page callback: builds the page for administering shortcut sets.

1 string reference to 'shortcut_set_admin'
shortcut_menu in modules/shortcut/shortcut.module
Implements hook_menu().

File

modules/shortcut/shortcut.admin.inc, line 169

Code

function shortcut_set_admin() {
    $shortcut_sets = shortcut_sets();
    $header = array(
        t('Name'),
        array(
            'data' => t('Operations'),
            'colspan' => 4,
        ),
    );
    $rows = array();
    foreach ($shortcut_sets as $set) {
        $row = array(
            check_plain($set->title),
            l(t('list links'), "admin/config/user-interface/shortcut/{$set->set_name}"),
            l(t('edit set name'), "admin/config/user-interface/shortcut/{$set->set_name}/edit"),
        );
        if (shortcut_set_delete_access($set)) {
            $row[] = l(t('delete set'), "admin/config/user-interface/shortcut/{$set->set_name}/delete");
        }
        else {
            $row[] = '';
        }
        $rows[] = $row;
    }
    return theme('table', array(
        'header' => $header,
        'rows' => $rows,
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.