You are here

function user_features_api in Features 7.2

Same name and namespace in other branches
  1. 6 includes/features.user.inc \user_features_api()
  2. 7 includes/features.user.inc \user_features_api()

Implements hook_features_api().

File

includes/features.user.inc, line 11
Features integration for 'user' module.

Code

function user_features_api() {
  return array(
    'user_role' => array(
      'name' => t('Roles'),
      'feature_source' => TRUE,
      /* @see \hook_user_default_roles() */

      /* @see \hook_user_default_roles_alter() */
      'default_hook' => 'user_default_roles',
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
    ),
    'user_permission' => array(
      'name' => t('Permissions'),
      'feature_source' => TRUE,
      /* @see \hook_user_default_permissions() */

      /* @see \hook_user_default_permissions_alter() */
      'default_hook' => 'user_default_permissions',
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
    ),
  );
}