You are here

function ip_geoloc_block_info in IP Geolocation Views & Maps 7

Implements hook_block_info().

File

./ip_geoloc_blocks.inc, line 15
Blocks available in IP Geolocation Views & Maps.

Code

function ip_geoloc_block_info() {
  $blocks['geocode_address'] = array(
    'info' => t('IPGV&M: Set my location'),
    'cache' => DRUPAL_NO_CACHE,
  );
  $blocks['current_visitor_map'] = array(
    'info' => t("IPGV&M: Map (Google) centered on visitor's location"),
    'cache' => DRUPAL_NO_CACHE,
  );
  $blocks['recent_visitors_map'] = array(
    'info' => t('IPGV&M: Map (Google) of @n most recent visitors', array(
      '@n' => variable_get('ip_geoloc_recent_visitors_map_number_of_visitors', 20),
    )),
    'cache' => DRUPAL_NO_CACHE,
  );
  $blocks['address_lookup'] = array(
    'info' => t('IPGV&M: Address lookup based on IP'),
    'cache' => DRUPAL_NO_CACHE,
  );
  return $blocks;
}