You are here

function filebrowser_STARTER_filebrowser_metadata_set in Filebrowser 7.4

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

hook_filebrowser_metadata_get implementation. @file the filebrowser file object to extract metadata from

Return value

an array of metatada

File

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

Code

function filebrowser_STARTER_filebrowser_metadata_set($file, $metadata) {
  if (isset($metadata['STARTER_foo'])) {
    drupal_set_message('It seems that you want to change "foo" to ' . $metadata['STARTER_foo'] . ' for ' . $file['display-name']);
  }
}