You are here

function reviews_block_view in Reviews 7

Implements hook_block_view().

File

./reviews.module, line 300
This file defines all the necessary hooks and functions to create a system for enabling and authoring content reviews on a per content type basis.

Code

function reviews_block_view($delta) {
  $block = array();
  switch ($delta) {
    case 'reviews':
      $block['subject'] = t('Reviews');
      $block['content'] = reviews_get_reviews_block();
      break;
    case 'my_reviews':
      $block['subject'] = t('My Reviews');
      $block['content'] = reviews_get_my_reviews_block();
      break;
  }
  return $block;
}