function webfm_attach_box in Web File Manager 5
Same name and namespace in other branches
- 5.2 webfm.module \webfm_attach_box()
Get and theme node attachments
1 call to webfm_attach_box()
- webfm_block in ./
webfm.module - Implementation of hook_block().
File
- ./
webfm.module, line 792
Code
function webfm_attach_box() {
if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(2)) {
$node = node_load(arg(1));
}
$files = webfm_get_attachments($node->nid);
return theme('webfm_attachments', $files);
}