Skip to content
Snippets Groups Projects
Commit facee1fe authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Issue #1085564 by solotandem: Fix return value in hook_requirements().

parent a8e846b6
No related branches found
No related tags found
No related merge requests found
......@@ -9,16 +9,16 @@
* Implement hook_requirements().
*/
function gmap_taxonomy_requirements($phase) {
$requirements = array();
if (!variable_get('taxonomy_maintain_index_table', TRUE)) {
return array(
'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,
),
$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;
}
......@@ -97,4 +97,4 @@ function gmap_taxonomy_update_6001() {
function gmap_taxonomy_update_7000() {
// @@@ FIXME -- rebuild the table from scratch again.
}
*/
\ No newline at end of file
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment