function dashboard_permission
dashboard_permission()
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')), )), ), ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!dashboard!dashboard.module/function/dashboard_permission/7.x