You are here

function cmis_block in CMIS API 6.4

Same name and namespace in other branches
  1. 6.3 cmis.module \cmis_block()

CMIS repository switcher block.

File

./cmis.module, line 221

Code

function cmis_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $block[0]['info'] = t('CMIS repository switcher');
    return $block;
  }
  elseif ($op == 'view') {
    $block['subject'] = t('CMIS repositories');
    $block['content'] = drupal_get_form('cmis_repository_switcher_form');
    return $block;
  }
}