You are here

function dashboard_permission in Drupal 7

Implements hook_permission().

File

modules/dashboard/dashboard.module, line 84
Provides a dashboard page in the administrative interface.

Code

function dashboard_permission() {
  return array(
    'access dashboard' => array(
      'title' => t('View the administrative dashboard'),
      // Note: We translate the 'Administer blocks' permission string here with
      // a separate t() call, to make sure it gets the same translation as when
      // it's in block_permission().
      'description' => t('Customizing the dashboard requires the !permission-name permission.', array(
        '!permission-name' => l(t('Administer blocks'), 'admin/people/permissions', array(
          'fragment' => 'module-block',
        )),
      )),
    ),
  );
}