You are here

faq_content.features.user_permission.inc in Frequently Asked Questions 7.2

File

faq_content/faq_content.features.user_permission.inc
View source
<?php

/**
 * @file
 * faq_content.features.user_permission.inc
 */

/**
 * Implements hook_user_default_permissions().
 */
function faq_content_user_default_permissions() {
  $permissions = array();

  // Exported permission: 'administer faq'.
  $permissions['administer faq'] = array(
    'name' => 'administer faq',
    'roles' => array(
      'expert' => 'expert',
    ),
    'module' => 'faq',
  );

  // Exported permission: 'administer faq order'.
  $permissions['administer faq order'] = array(
    'name' => 'administer faq order',
    'roles' => array(
      'expert' => 'expert',
    ),
    'module' => 'faq',
  );

  // Exported permission: 'create faq content'.
  $permissions['create faq content'] = array(
    'name' => 'create faq content',
    'roles' => array(
      'anonymous user' => 'anonymous user',
      'expert' => 'expert',
    ),
    'module' => 'node',
  );

  // Exported permission: 'delete any faq content'.
  $permissions['delete any faq content'] = array(
    'name' => 'delete any faq content',
    'roles' => array(
      'expert' => 'expert',
    ),
    'module' => 'node',
  );

  // Exported permission: 'delete own faq content'.
  $permissions['delete own faq content'] = array(
    'name' => 'delete own faq content',
    'roles' => array(
      'expert' => 'expert',
    ),
    'module' => 'node',
  );

  // Exported permission: 'edit any faq content'.
  $permissions['edit any faq content'] = array(
    'name' => 'edit any faq content',
    'roles' => array(
      'expert' => 'expert',
    ),
    'module' => 'node',
  );

  // Exported permission: 'edit own faq content'.
  $permissions['edit own faq content'] = array(
    'name' => 'edit own faq content',
    'roles' => array(
      'expert' => 'expert',
    ),
    'module' => 'node',
  );

  // Exported permission: 'view faq page'.
  $permissions['view faq page'] = array(
    'name' => 'view faq page',
    'roles' => array(
      'anonymous user' => 'anonymous user',
      'expert' => 'expert',
    ),
    'module' => 'faq',
  );
  return $permissions;
}

Functions

Namesort descending Description
faq_content_user_default_permissions Implements hook_user_default_permissions().