function cis_service_connection_block_view

cis7 cis_service_connection.module cis_service_connection_block_view($delta = '')
cle7 cis_service_connection.module cis_service_connection_block_view($delta = '')
elmsmedia7 cis_service_connection.module cis_service_connection_block_view($delta = '')
icor7 cis_service_connection.module cis_service_connection_block_view($delta = '')
meedjum_blog7 cis_service_connection.module cis_service_connection_block_view($delta = '')
mooc7 cis_service_connection.module cis_service_connection_block_view($delta = '')

Implements hook_block_view().

File

sites/all/modules/elmsln_contrib/cis_connector/modules/cis_service_connection/cis_service_connection.module, line 39
Define links for a unified experience across systems.

Code

function cis_service_connection_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'active_outline':
      $block = cis_service_connection_block_section_outline();
      break;
    case 'instructor_contact':
      $block['subject'] = t('Instructor Contact');
      $block['content'] = cis_service_connection_block_instructor_contact();
      break;
    case 'section_context_changer':
      if (user_access('switch section context')) {
        $block['subject'] = t('Section change');
        $block['content'] = drupal_get_form('cis_service_connection_block_section_context_changer_form');
      }
      break;
  }
  return $block;
}