You are here

function filebrowser_permission in Filebrowser 7.3

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

Implements hook_permission().

File

./filebrowser.module, line 44

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_DIRECTORY_LISTINGS => array(
      'title' => t('Edit any directory listing'),
    ),
    FILEBROWSER_VIEW_DIRECTORY_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_RENAME_FILE => array(
      'title' => t('Rename file'),
    ),
    FILEBROWSER_DOWNLOAD => array(
      'title' => t('Download files'),
    ),
    FILEBROWSER_CREATE_FOLDER => array(
      'title' => t('Create folders'),
    ),
  );
}