You are here

function filebrowser_STARTER_filebrowser_download_manager_process in Filebrowser 7.2

Same name and namespace in other branches
  1. 8 filebrowser_STARTER/filebrowser_STARTER.module \filebrowser_STARTER_filebrowser_download_manager_process()
  2. 7.4 filebrowser_STARTER/filebrowser_STARTER.module \filebrowser_STARTER_filebrowser_download_manager_process()
  3. 7.3 filebrowser_STARTER/filebrowser_STARTER.module \filebrowser_STARTER_filebrowser_download_manager_process()

hook_filebrowser_download_manager_process implementation.

Parameters

delta the key of the download manager. :

file the file object to download:

filename exposed file name:

Return value

TRUE of everything ok, anything else if you want to throw an access denied error.

File

filebrowser_STARTER/filebrowser_STARTER.module, line 169
hook_filebrowser_metadata_get implementation. the filebrowser file object to extract metadata from

Code

function filebrowser_STARTER_filebrowser_download_manager_process($delta = NULL, $file = NULL, $filename = NULL) {
  switch ($delta) {
    case 'foo':
      print "I'm a foo downloader and I don't want to work today (I'm also french..;-). <bR>";
      print "file: {$file}<br/>";
      print "target: {$filename}<br/>";
      return TRUE;
  }
}