function filebrowser_node_view_bak in Filebrowser 8
Implements hook_node_view().
File
- ./
filebrowser.module, line 450 - Validates file path input on node form
Code
function filebrowser_node_view_bak($node, $view_mode) {
if ($node->type == 'dir_listing' && $view_mode == 'full') {
$links = array();
if (_filebrowser_metadata_access($node->file_listing['.']['fid'])) {
$links['file_browser_metadata'] = array(
'href' => "filebrowser/metadata/{$node->file_listing['.']['fid']}",
'title' => t("Edit Metadatas"),
'query' => drupal_get_destination(),
);
}
$thumbnailers = module_implements("filebrowser_thumbnailer_prepare");
if (count($thumbnailers) != 0) {
$links['file_browser_update_thumbnails'] = array(
'href' => "filebrowser/thumbnails/{$node->file_listing['.']['fid']}",
'title' => t("Update thumbnails"),
'query' => drupal_get_destination(),
);
}
$node->content['links']['filebrowser'] = array(
'#theme' => 'links',
'#links' => $links,
);
}
}