You are here

function gmap_taxonomy_requirements in GMap Module 7

Same name and namespace in other branches
  1. 7.2 gmap_taxonomy.install \gmap_taxonomy_requirements()

Implement hook_requirements().

File

./gmap_taxonomy.install, line 11
gmap_taxonomy install routines.

Code

function gmap_taxonomy_requirements($phase) {
  $requirements = array();
  if (!variable_get('taxonomy_maintain_index_table', TRUE)) {
    $requirements['gmap_taxonomy_able_to_index'] = array(
      'title' => t('GMap Taxonomy Markers'),
      'value' => '',
      'description' => t('The variable <em>taxonomy_maintain_index_table</em> is set to FALSE. gmap_taxonomy.module will not work properly.'),
      'severity' => REQUIREMENT_ERROR,
    );
  }
  return $requirements;
}