You are here

function hook_filebrowser_metadata_set in Filebrowser 6.2

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

Return value

an array of metatada

1 function implements hook_filebrowser_metadata_set()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

filebrowser_filebrowser_metadata_set in ./filebrowser.module
3 invocations of hook_filebrowser_metadata_set()
filebrowser_form_create_folder_submit in ./filebrowser.form.create_folder.inc
create folder submition.
filebrowser_form_metadata_submit in ./filebrowser.pages.inc
filebrowser_form_upload_submit in ./filebrowser.form.upload.inc
uploads submition.

File

./filebrowser.api.php, line 123
hook_filebrowser_metadata_get implementation. the filebrowser file object to extract metadata from

Code

function hook_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']);
  }
}