function filebrowser_STARTER_filebrowser_thumbnailer in Filebrowser 7.3
Same name and namespace in other branches
- 8 filebrowser_STARTER/filebrowser_STARTER.module \filebrowser_STARTER_filebrowser_thumbnailer()
- 7.4 filebrowser_STARTER/filebrowser_STARTER.module \filebrowser_STARTER_filebrowser_thumbnailer()
- 7.2 filebrowser_STARTER/filebrowser_STARTER.module \filebrowser_STARTER_filebrowser_thumbnailer()
hook_filebrowser_thumbnailer implementation.
Parameters
$file a filebrowser file object:
$settings handler settings (as provider by hook_filebrowser_handler_settings):
Return value
a working XHTML markup (with A, IMG & co.)
File
- filebrowser_STARTER/
filebrowser_STARTER.module, line 49 - hook_filebrowser_metadata_get implementation. the filebrowser file object to extract metadata from
Code
function filebrowser_STARTER_filebrowser_thumbnailer($file, $settings) {
return "\n \t<div \n \t\tstyle='width:{$settings->size}px;height:{$settings->size}px;background-color:red;' >\n \t{$file['display-name']}\n \t</div>";
}