You are here

function filebrowser_filebrowser_actions_info in Filebrowser 8

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

hook_filebrowser_actions_info implementation

Parameters

unknown_type $node:

File

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

Code

function filebrowser_filebrowser_actions_info($node) {
  $actions = array();
  if ($node->file_listing['.']['files_count'] > 0) {
    if (_filebrowser_can_download_archive($node) && function_exists('zip_open')) {
      $actions[] = array(
        'operation' => 'download',
        'title' => t("Download selected items as an ZIP archive (only files)"),
      );
    }
    if (user_access(FILEBROWSER_DELETE_FILE)) {
      $actions[] = array(
        'operation' => 'delete',
        'title' => t("Delete selected items"),
      );
    }
  }
  return $actions;
}