function context_ui_block_view

cis7 context_ui.module context_ui_block_view($delta = '')
cle7 context_ui.module context_ui_block_view($delta = '')
elmsmedia7 context_ui.module context_ui_block_view($delta = '')
icor7 context_ui.module context_ui_block_view($delta = '')
meedjum_blog7 context_ui.module context_ui_block_view($delta = '')
mooc7 context_ui.module context_ui_block_view($delta = '')

Implementation of hook_block_view().

File

sites/all/modules/ulmus/context/context_ui/context_ui.module, line 53

Code

function context_ui_block_view($delta = '') {
  switch ($delta) {
    case 'editor':
      if (user_access('administer contexts') && strpos($_GET['q'], 'admin/structure/context') === FALSE && $contexts = context_active_contexts()) {
        return array(
          'subject' => t('Context editor'),
          'content' => drupal_get_form('context_ui_editor', $contexts),
        );
      }
      break;
    case 'devel':
      if (module_exists('devel') && $all = context_get()) {
        return array(
          'subject' => t('Context inspector'),
          'content' => kdevel_print_object($all),
        );
      }
      break;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.