function devel_block_switch_user

cis7 devel.module devel_block_switch_user()
cle7 devel.module devel_block_switch_user()
elmsmedia7 devel.module devel_block_switch_user()
icor7 devel.module devel_block_switch_user()
meedjum_blog7 devel.module devel_block_switch_user()
mooc7 devel.module devel_block_switch_user()
1 call to devel_block_switch_user()
devel_block_view in sites/all/modules/ulmus/devel/devel.module

File

sites/all/modules/ulmus/devel/devel.module, line 797

Code

function devel_block_switch_user() {
  $links = devel_switch_user_list();
  if (!empty($links) || user_access('switch users')) {
    drupal_add_css(drupal_get_path('module', 'devel') . '/devel.css');
    $block['subject'] = t('Switch user');
    $build['devel_links'] = array(
      '#theme' => 'links',
      '#links' => $links,
    );
    if (variable_get('devel_switch_user_show_form', TRUE)) {
      $build['devel_form'] = drupal_get_form('devel_switch_user_form');
    }
    $block['content'] = $build;
    return $block;
  }
}
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.