diff --git a/actions_permissions.module b/actions_permissions.module
index 3592674..e52e3b4 100644
--- a/actions_permissions.module
+++ b/actions_permissions.module
@@ -7,16 +7,21 @@ function actions_permissions_permission() {
   $perms = array();
   $actions = actions_list();
   foreach ($actions as $callback => $action) {
-    $perms += actions_permissions_get_perm($action['label'], $callback);
+    $perms += actions_permissions_get_perm($action['label'], $callback, FALSE);
   }
   return $perms;
 }
 
-function actions_permissions_get_perm($label, $callback) {
+function actions_permissions_get_perm($label, $callback, $key_only = TRUE) {
   $key = "execute $callback";
-  return array($key => array(
-      'title' => t('Execute !label', array('!label' => $label)),
-      'description' => t('Execute action "!label" (!callback).', array('!label' => $label, '!callback' => is_numeric($callback) ? "aid:$callback" : $callback)),
-    ),
-  );
+  if ($key_only) {
+    return $key;
+  }
+  else {
+    return array($key => array(
+        'title' => t('Execute !label', array('!label' => $label)),
+        'description' => t('Execute action "!label" (!callback).', array('!label' => $label, '!callback' => is_numeric($callback) ? "aid:$callback" : $callback)),
+      ),
+    );
+  }
 }
