function user_dashboard_permission in UserDashboard 7
Implements hook_permission().
File
- ./
user_dashboard.module, line 82 - The User Dashboard module forks Drupal 7's awesome Dashboard module to provide an individual dashboard for each user on the site.
Code
function user_dashboard_permission() {
return array(
USER_DASHBOARD_PERM_SET_DEFAULT => array(
'title' => t('Set default blocks'),
'description' => t('Grants access to set default UserDashboard blocks.'),
),
USER_DASHBOARD_PERM_VIEW_ALL => array(
'title' => t("View all user's dashboards."),
'description' => t("Grants access to view all user's dashboards."),
),
);
}