You are here

function filebrowser_STARTER_filebrowser_presentations in Filebrowser 7.2

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

hook_filebrowser_presentation implementation.

Return value

a list of presentation composed by a unique key (of the array), a title and a theme name that will be used like this : theme(PRESENTATION_THEME, $filebrowser_node); So this can be a theme function or a template. $node->file_listing give you access to file objects.

File

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

Code

function filebrowser_STARTER_filebrowser_presentations() {
  return array(
    'foo-view' => array(
      'title' => t('STARTER view'),
      'theme' => 'filebrowser_STARTER_view',
    ),
  );
}