Permalink
Browse files

Updating permissions hook

  • Loading branch information...
1 parent dda2ba1 commit b29eb235b8728d6a3503e23bb146f10f4cfa835a TJ Lewis committed Mar 12, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 mapping/mapping.module
View
@@ -19,13 +19,17 @@ function mapping_menu() {
}
/**
- * Implements hook_perm. Register permissions.
+ * Implements hook_permission. Register permissions.
*
* @return array
*/
-function mapping_perm() {
+function mapping_permission() {
return array(
- PERM_MAPPING_VIEW_OBJECTS,
+ PERM_MAPPING_VIEW_OBJECTS => array(
+ 'title' => t(PERM_MAPPING_VIEW_OBJECTS),
+ 'description' => t('View BAMP Mapping Interface.'),
+ 'restrict access' => TRUE,
+ ),
);
}

0 comments on commit b29eb23

Please sign in to comment.