You are here

hooks.inc in Filebrowser 7.3

Same filename and directory in other branches
  1. 8 drupal6/hooks.inc
  2. 7.4 drupal6/hooks.inc
  3. 7.2 drupal6/hooks.inc

File

drupal6/hooks.inc
View source
<?php

/**
 * Implementation of hook_node_info().
 */
function filebrowser_node_info() {
  return array(
    'dir_listing' => array(
      'module' => 'filebrowser',
      'name' => t('Directory listing'),
      'description' => t("A listing of files similar to how Apache lists files in a directory."),
      'has_body' => FALSE,
    ),
  );
}

/**
 * hook_perm implementation.
 */
function filebrowser_perm() {
  return array(
    FILEBROWSER_CREATE_DIRECTORY_LISTING,
    FILEBROWSER_DELETE_OWN_DIRECTORY_LISTINGS,
    FILEBROWSER_DELETE_ANY_DIRECTORY_LISTINGS,
    FILEBROWSER_EDIT_OWN_DIRECTORY_LISTINGS,
    FILEBROWSER_EDIT_ANY_DIRECORY_LISTINGS,
    FILEBROWSER_VIEW_DIRECORY_LISTINGS,
    FILEBROWSER_UPLOAD,
    FILEBROWSER_DOWNLOAD_ARCHIVE,
    FILEBROWSER_DELETE_FILE,
    FILEBROWSER_DOWNLOAD,
    FILEBROWSER_CREATE_FOLDER,
  );
}

Functions

Namesort descending Description
filebrowser_node_info Implementation of hook_node_info().
filebrowser_perm hook_perm implementation.