You are here

function crumbs_block_view in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 crumbs.block.inc \crumbs_block_view()

Implements hook_block_view()

File

./crumbs.module, line 107
Provides an API for building breadcrumbs.

Code

function crumbs_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'breadcrumb':
      $breadcrumb_data = crumbs_get_breadcrumb_data();
      if ($breadcrumb_data) {
        $block['content'] = $breadcrumb_data['html'];
      }
      break;
  }
  return $block;
}