You are here

function webfm_block in Web File Manager 5

Same name and namespace in other branches
  1. 5.2 webfm.module \webfm_block()

Implementation of hook_block().

File

./webfm.module, line 516

Code

function webfm_block($op = 'list', $delta = 0) {
  if ($op == 'list') {
    $blocks[0]['info'] = t('WebFM File Attachments');
    return $blocks;
  }
  else {
    if ($op == 'view' && user_access('access content') && user_access('view webfm attachments')) {
      $block['content'] = webfm_attach_box();
      $block['subject'] = t('Attachments');
      return $block;
    }
  }
}