You are here

function filebrowser_STARTER_filebrowser_actions_info in Filebrowser 7.4

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

Parameters

unknown_type $node:

File

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

Code

function filebrowser_STARTER_filebrowser_actions_info($node) {
  $actions = array();
  if ($node->file_listing['.']['files_count'] > 0) {
    $actions[] = array(
      'operation' => 'foo',
      'title' => t("Foo action for files only"),
    );
  }
  return $actions;
}