You are here

function classified_block_info in Classified Ads 7.3

Same name and namespace in other branches
  1. 6.3 classified.module \classified_block_info()

Implements hook_block_info().

File

./classified.module, line 754
A pure D7 classified ads module inspired by the ed_classified module.

Code

function classified_block_info() {
  $ret = array(
    'recent' => array(
      'info' => t('Recent ads'),
      'cache' => DRUPAL_CACHE_GLOBAL,
    ),
    'popular' => array(
      'info' => t('Popular ads'),
      'cache' => DRUPAL_CACHE_GLOBAL,
    ),
    'stats' => array(
      'info' => t('Ad Stats'),
      'cache' => DRUPAL_CACHE_PER_ROLE,
    ),
  );
  foreach ($ret as $delta => $block) {
    $ret[$delta]['info'] = t('Classified - @info', array(
      '@info' => $ret[$delta]['info'],
    ));
  }
  return $ret;
}