You are here

function panels_customerror_block_view in Panels Custom Error 7

Implements hook_block_view().

File

./panels_customerror.module, line 27

Code

function panels_customerror_block_view($delta = '') {
  $block = array();
  if ($delta == '403') {
    return array(
      'content' => t('You are not authorized to access this page.'),
    );
  }
  elseif ($delta == '404') {
    return array(
      'content' => t('The requested page "@path" could not be found.', array(
        '@path' => request_uri(),
      )),
    );
  }
  return $block;
}