summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fp.admin.inc2
-rw-r--r--fp.install7
-rw-r--r--fp.module2
3 files changed, 9 insertions, 2 deletions
diff --git a/fp.admin.inc b/fp.admin.inc
index c2b4ae7..d5cda86 100644
--- a/fp.admin.inc
+++ b/fp.admin.inc
@@ -200,4 +200,4 @@ function theme_fp_admin_permissions_overview($variables) {
$output .= drupal_render_children($form);
return $output;
-} \ No newline at end of file
+}
diff --git a/fp.install b/fp.install
index 4ddc030..f9aacaa 100644
--- a/fp.install
+++ b/fp.install
@@ -11,4 +11,11 @@ function fp_install() {
->condition('type', 'module')
->condition('name', 'fp')
->execute();
+}
+
+/**
+ * Forces a menu rebuild.
+ */
+function fp_update_7000() {
+ // An empty update function is enough to trigger a full cache rebuild.
} \ No newline at end of file
diff --git a/fp.module b/fp.module
index c1dcd36..f0c3de8 100644
--- a/fp.module
+++ b/fp.module
@@ -19,7 +19,7 @@ function fp_menu() {
'title' => 'Permissions',
'page callback' => 'drupal_get_form',
'page arguments' => array('fp_admin_permissions', 3),
- 'access callback' => TRUE,
+ 'access arguments' => array('administer permissions'),
'type' => MENU_CALLBACK,
'file' => 'fp.admin.inc',
);