|
@@ -0,0 +1,64 @@
|
|
|
+<?php
|
|
|
+/**
|
|
|
+ * @file
|
|
|
+ * materio_publications.features.user_permission.inc
|
|
|
+ */
|
|
|
+
|
|
|
+/**
|
|
|
+ * Implements hook_user_default_permissions().
|
|
|
+ */
|
|
|
+function materio_publications_user_default_permissions() {
|
|
|
+ $permissions = array();
|
|
|
+
|
|
|
+ // Exported permission: 'create publication content'.
|
|
|
+ $permissions['create publication content'] = array(
|
|
|
+ 'name' => 'create publication content',
|
|
|
+ 'roles' => array(
|
|
|
+ 'administrator' => 'administrator',
|
|
|
+ 'root' => 'root',
|
|
|
+ ),
|
|
|
+ 'module' => 'node',
|
|
|
+ );
|
|
|
+
|
|
|
+ // Exported permission: 'delete any publication content'.
|
|
|
+ $permissions['delete any publication content'] = array(
|
|
|
+ 'name' => 'delete any publication content',
|
|
|
+ 'roles' => array(
|
|
|
+ 'root' => 'root',
|
|
|
+ ),
|
|
|
+ 'module' => 'node',
|
|
|
+ );
|
|
|
+
|
|
|
+ // Exported permission: 'delete own publication content'.
|
|
|
+ $permissions['delete own publication content'] = array(
|
|
|
+ 'name' => 'delete own publication content',
|
|
|
+ 'roles' => array(),
|
|
|
+ 'module' => 'node',
|
|
|
+ );
|
|
|
+
|
|
|
+ // Exported permission: 'edit any publication content'.
|
|
|
+ $permissions['edit any publication content'] = array(
|
|
|
+ 'name' => 'edit any publication content',
|
|
|
+ 'roles' => array(
|
|
|
+ 'administrator' => 'administrator',
|
|
|
+ 'root' => 'root',
|
|
|
+ ),
|
|
|
+ 'module' => 'node',
|
|
|
+ );
|
|
|
+
|
|
|
+ // Exported permission: 'edit own publication content'.
|
|
|
+ $permissions['edit own publication content'] = array(
|
|
|
+ 'name' => 'edit own publication content',
|
|
|
+ 'roles' => array(),
|
|
|
+ 'module' => 'node',
|
|
|
+ );
|
|
|
+
|
|
|
+ // Exported permission: 'show publication title'.
|
|
|
+ $permissions['show publication title'] = array(
|
|
|
+ 'name' => 'show publication title',
|
|
|
+ 'roles' => array(),
|
|
|
+ 'module' => 'materio_page_title',
|
|
|
+ );
|
|
|
+
|
|
|
+ return $permissions;
|
|
|
+}
|