You are here

function webfm_attach_box in Web File Manager 5.2

Same name and namespace in other branches
  1. 5 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 537

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);
}