You are here

function filebrowser_permission in Filebrowser 8

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

Implements hook_permission().

File

./filebrowser.module, line 38
Validates file path input on node form

Code

function filebrowser_permission() {
  return array(
    FILEBROWSER_CREATE_DIRECTORY_LISTING => array(
      'title' => t('Create a directory listing'),
    ),
    FILEBROWSER_DELETE_OWN_DIRECTORY_LISTINGS => array(
      'title' => t('Delete own directory listings'),
    ),
    FILEBROWSER_DELETE_ANY_DIRECTORY_LISTINGS => array(
      'title' => t('Delete any directory listing'),
    ),
    FILEBROWSER_EDIT_OWN_DIRECTORY_LISTINGS => array(
      'title' => t('Edit own directory listings'),
    ),
    FILEBROWSER_EDIT_ANY_DIRECORY_LISTINGS => array(
      'title' => t('Edit any directory listing'),
    ),
    FILEBROWSER_VIEW_DIRECORY_LISTINGS => array(
      'title' => t('View directory listings'),
    ),
    FILEBROWSER_UPLOAD => array(
      'title' => t('Upload files'),
    ),
    FILEBROWSER_DOWNLOAD_ARCHIVE => array(
      'title' => t('Download archive'),
    ),
    FILEBROWSER_DELETE_FILE => array(
      'title' => t('Delete file'),
    ),
    FILEBROWSER_DOWNLOAD => array(
      'title' => t('Download files'),
    ),
    FILEBROWSER_CREATE_FOLDER => array(
      'title' => t('Create folders'),
    ),
    // -- Filebrowser entity
    'delete_filebrowser' => array(
      'title' => t('Delete entity content.'),
    ),
    'add_filebrowser' => array(
      'title' => t('Add entity content'),
    ),
    'view_filebrowser' => array(
      'title' => t('View entity content'),
    ),
    'edit_filebrowser' => array(
      'title' => t('Edit entity content'),
    ),
    'admin_filebrowser' => array(
      'title' => t('Administer settings'),
    ),
  );
}