You are here

function media_permission in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.module \media_permission()
  2. 7.2 media.module \media_permission()
  3. 7.3 media.module \media_permission()

Implements hook_permission().

File

./media.module, line 292
Media API

Code

function media_permission() {
  return array(
    'administer media' => array(
      'title' => t('Administer media'),
      'description' => t('Add, edit or delete media files and administer settings.'),
    ),
    'import media' => array(
      'title' => t('Import media files from the local filesystem'),
      'description' => t('Simple file importer'),
      'restrict access' => TRUE,
    ),
    'view media' => array(
      'title' => t('View media'),
      'description' => t('View all media files.'),
    ),
    'edit media' => array(
      'title' => t('Edit media'),
      'description' => t('Edit all media files.'),
    ),
  );
}