Browse Source

Fixed permissions -it's hook_permission (not plural) & wasn't implemented consistently as such

Lacey Sanderson 11 years ago
parent
commit
e62ee4cbe7

+ 2 - 2
tripal_contact/tripal_contact.module

@@ -227,11 +227,11 @@ function tripal_contact_block_view($delta = '') {
 }
 
 /**
- * Implement hook_permissions().
+ * Implement hook_permission().
  *
  * @ingroup tripal_contact
  */
-function tripal_contact_permissions() {
+function tripal_contact_permission() {
   return array(
     'access chado_contact content' => array(
       'title' => t('View Contacts'),

+ 3 - 1
tripal_core/tripal_core.module

@@ -417,7 +417,9 @@ function tripal_core_menu() {
 }
 
 /**
- *  Set the permission types that the chado module uses.  Essentially we
+ * Implements hook_permission().
+ *
+ * Set the permission types that the chado module uses.  Essentially we
  *  want permissionis that protect creation, editing and deleting of chado
  *  data objects
  *

+ 4 - 2
tripal_db/tripal_db.module

@@ -97,7 +97,9 @@ function tripal_db_help ($path, $arg) {
 
 
 /**
- *  Set the permission types that the chado module uses.  Essentially we
+ * Implements hook_permission().
+ *
+ * Set the permission types that the chado module uses.  Essentially we
  *  want permissionis that protect creation, editing and deleting of chado
  *  data objects
  *
@@ -133,7 +135,7 @@ function tripal_db_views_api() {
  * @ingroup tripal_db
  */
 function tripal_db_theme($existing, $type, $theme, $path) {
- 
+
  $items = array(
     'tripal_db_help' => array(
       'template' => 'tripal_db_help',

+ 3 - 1
tripal_feature/tripal_feature.module

@@ -69,13 +69,15 @@ function tripal_feature_help($path, $arg) {
 
 
 /**
+ * Implements hook_permission().
+ *
  *  Set the permission types that the chado module uses.  Essentially we
  *  want permissionis that protect creation, editing and deleting of chado
  *  data objects
  *
  * @ingroup tripal_feature
  */
-function tripal_feature_permissions() {
+function tripal_feature_permission() {
   return array(
     'access chado_feature content' => array(
       'title' => t('View Features'),

+ 3 - 1
tripal_featuremap/tripal_featuremap.module

@@ -46,13 +46,15 @@ function tripal_featuremap_help($path, $arg) {
 
 
 /**
+ * Implements hook_permission().
+ *
  * Set the permission types that the chado module uses.  Essentially we
  * want permissionis that protect creation, editing and deleting of chado
  * data objects
  *
  * @ingroup tripal_featuremap
  */
-function tripal_featuremap_permissions() {
+function tripal_featuremap_permission() {
   return array(
     'access chado_featuremap content' => array(
       'title' => t('View Maps'),

+ 4 - 2
tripal_genetic/tripal_genetic.module

@@ -14,8 +14,10 @@ require('includes/tripal_genetic.schema.inc');
 require('includes/tripal_genetic.admin.inc');
 
 /**
- *  Set the permission types that the chado module uses.  Essentially we
- *  want permissionis 
+ * Implements hook_permission().
+ *
+ * Set the permission types that the chado module uses.  Essentially we
+ *  want permissionis
  *
  * @ingroup tripal_genetic
  */

+ 3 - 1
tripal_natural_diversity/tripal_natural_diversity.module

@@ -13,7 +13,9 @@ require_once('includes/tripal_natural_diversity.admin.inc');
  */
 
 /**
- *  Set the permission types that the chado module uses.  Essentially we
+ * Implements hook_permission().
+ *
+ * Set the permission types that the chado module uses.  Essentially we
  *  want permissionis
  *
  * @ingroup tripal_natural_diversity

+ 4 - 3
tripal_organism/tripal_organism.module

@@ -173,12 +173,13 @@ function tripal_organism_theme($existing, $type, $theme, $path) {
 }
 
 /**
-  *  Set the permission types that the chado module uses.  Essentially we
+  * Implements hook_permission().
+  *
+  * Set the permission types that the chado module uses.  Essentially we
   *  want permissionis that protect creation, editing and deleting of chado
   *  data objects
   *
-  *
-  @ingroup tripal_organism
+  * @ingroup tripal_organism
   */
 function tripal_organism_permission() {
   return array(

+ 3 - 1
tripal_phenotype/tripal_phenotype.module

@@ -9,7 +9,9 @@
  */
 
 /**
- *  Set the permission types that the chado module uses.  Essentially we
+ * Implements hook_permission().
+ *
+ * Set the permission types that the chado module uses.  Essentially we
  *  want permissionis
  *
  * @ingroup tripal_phenotype

+ 4 - 2
tripal_pub/tripal_pub.module

@@ -303,9 +303,11 @@ function tripal_pub_views_api() {
 }
 
 /**
- * Implement hook_permissions().
+ * Implement hook_permission().
+ *
+ * @ingroup tripal_pub
  */
-function tripal_pub_permissions() {
+function tripal_pub_permission() {
   return array(
     'access chado_pub content' => array(
       'title' => t('View Publications'),

+ 2 - 2
tripal_stock/tripal_stock.module

@@ -119,7 +119,7 @@ function cs_node_load($nid) {
 }
 
 /**
- * Implementation of hook_perm().
+ * Implementation of hook_permission().
  *
  * Purpose: Set the permission types that the chado stock module uses
  *
@@ -128,7 +128,7 @@ function cs_node_load($nid) {
  *
  * @ingroup tripal_stock
  */
-function tripal_stock_permissions() {
+function tripal_stock_permission() {
   return array(
     'access chado_stock content' => array(
       'title' => t('View Stocks'),

+ 3 - 2
tripal_views/tripal_views.module

@@ -163,8 +163,9 @@ function tripal_views_help ($path, $arg) {
 }
 
 /**
- * Implements hook_permissions()
- * Purpose: Set the permission types that the chado module uses.
+ * Implements hook_permissions().
+ *
+ * Set the permission types that the chado module uses.
  *
  * @ingroup tripal_views
  */