You are here

function media_browser_plus_permission in Media Browser Plus 7.2

Same name and namespace in other branches
  1. 7 media_browser_plus.module \media_browser_plus_permission()

Implements hook_permission().

File

./media_browser_plus.module, line 753
Adds fields to the media browser forms for better UX

Code

function media_browser_plus_permission() {
  return array(
    'media grid view' => array(
      'title' => t('Grid View'),
      'description' => t('Allow users to use the grid view.'),
    ),
    'media list view' => array(
      'title' => t('List View'),
      'description' => t('Allow users to use the list view.'),
    ),
    'access media backend' => array(
      'title' => t('Access media backend'),
      'description' => t('Allow user to access the media backend according to their privileges.'),
    ),
    'upload media' => array(
      'title' => t('Upload media'),
      'description' => t('Allow user to add media.'),
    ),
    'download media files' => array(
      'title' => t('Download Files'),
      'description' => t('Allows the user to download the original file items.'),
    ),
    'filter media' => array(
      'title' => t('Filter Media'),
      'description' => t('Allows the user to filter the displayed media in the backend.'),
    ),
    'administer media folders' => array(
      'title' => t('Administer Media Folders'),
      // @TODO better description
      'description' => t('Allows the user to add, edite, delete and resort media folders.'),
    ),
    'preview media' => array(
      'title' => t('Preview media'),
      // @TODO better description
      'description' => t('Allows the user to view a configurable preview of the original media item.'),
    ),
    'edit media files' => array(
      'title' => t('Edit media files'),
      // @TODO better description
      'description' => t('Allows the user to edit the original media item.'),
    ),
  );
}