You are here

function hosting_client_block in Hosting 5

Same name and namespace in other branches
  1. 6.2 client/hosting_client.module \hosting_client_block()

File

client/hosting_client.module, line 530

Code

function hosting_client_block($op = 'list', $delta = 0, $edit = array()) {
  $blocks = array();
  if (user_access('view client')) {
    switch ($op) {
      case 'list':
        $blocks['hosting_clients'] = array(
          'info' => t('Hosting clients'),
          'enabled' => 1,
          'region' => 'left',
          'weight' => 10,
        );
        break;
      case 'view':
        switch ($delta) {
          case 'hosting_clients':
            $blocks['title'] = t('Clients');
            $blocks['content'] = hosting_client_list();
            break;
        }
    }
  }
  return $blocks;
}