You are here

function devel_block_view in Devel 7

Implements hook_block_view().

File

./devel.module, line 861
This module holds functions useful for Drupal development.

Code

function devel_block_view($delta) {
  $block = array();
  switch ($delta) {
    case 'switch_user':
      $block = devel_block_switch_user();
      break;
    case 'execute_php':
      if (user_access('execute php code')) {
        $block['content'] = drupal_get_form('devel_execute_block_form');
      }
      break;
  }
  return $block;
}