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 @@ ...@@ -9,16 +9,16 @@
* Implement hook_requirements(). * Implement hook_requirements().
*/ */
function gmap_taxonomy_requirements($phase) { function gmap_taxonomy_requirements($phase) {
$requirements = array();
if (!variable_get('taxonomy_maintain_index_table', TRUE)) { if (!variable_get('taxonomy_maintain_index_table', TRUE)) {
return array( $requirements['gmap_taxonomy_able_to_index'] = array(
'gmap_taxonomy_able_to_index' => array( 'title' => t('GMap Taxonomy Markers'),
'title' => t('GMap Taxonomy Markers'), 'value' => '',
'value' => '', 'description' => t('The variable <em>taxonomy_maintain_index_table</em> is set to FALSE. gmap_taxonomy.module will not work properly.'),
'description' => t('The variable <em>taxonomy_maintain_index_table</em> is set to FALSE. gmap_taxonomy.module will not work properly.'), 'severity' => REQUIREMENT_ERROR,
'severity' => REQUIREMENT_ERROR,
),
); );
} }
return $requirements;
} }
...@@ -97,4 +97,4 @@ function gmap_taxonomy_update_6001() { ...@@ -97,4 +97,4 @@ function gmap_taxonomy_update_6001() {
function gmap_taxonomy_update_7000() { function gmap_taxonomy_update_7000() {
// @@@ FIXME -- rebuild the table from scratch again. // @@@ 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