You are here

function file_entity_permission in File Entity (fieldable files) 7

Same name and namespace in other branches
  1. 7.3 file_entity.module \file_entity_permission()
  2. 7.2 file_entity.module \file_entity_permission()

Implement hook_permission().

File

./file_entity.module, line 156
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_permission() {
  return array(
    'administer files' => array(
      'title' => t('Administer files'),
      'description' => t('Add, edit or delete files and administer settings.'),
    ),
    'view file' => array(
      'title' => t('View file'),
      'description' => t('View all files.'),
    ),
    'edit file' => array(
      'title' => t('Edit file'),
      'description' => t('Edit all files.'),
    ),
  );
}