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

Fix variable usage bug. It hasn't caused problems because the backwards...

Fix variable usage bug. It hasn't caused problems because the backwards compatibility variables are still being used as a fallback.
parent 9d1d0618
No related branches found
No related tags found
No related merge requests found
......@@ -514,7 +514,7 @@ function gmap_location_admin_settings() {
'#title' => t('Marker for %type', array('%type' => $value->name)),
'#default_value' => isset($defaults[$key]) ? $defaults[$key] : 'drupal',
);
$settings = variable_get("location_settings_$key", FALSE);
$settings = variable_get("location_settings_node_$key", FALSE);
if (!((isset($settings['multiple']['max']) && $settings['multiple']['max']) || variable_get("location_maxnum_$key", 0))) {
$form['node']['gmap_node_markers'][$key]['#description'] = t('This content type is not currently Location enabled.');
}
......@@ -552,7 +552,7 @@ function gmap_location_block($op = 'list', $delta = 0, $edit = array()) {
$ntypes = node_get_types();
foreach ($ntypes as $key => $value) {
$settings = variable_get("location_settings_$key", FALSE);
$settings = variable_get("location_settings_node_$key", FALSE);
if ((isset($settings['multiple']['max']) && $settings['multiple']['max']) || variable_get("location_maxnum_$key", 0)) {
$form["gmap_location_block_macro_$key"] = array(
'#type' => 'textfield',
......@@ -605,7 +605,7 @@ function gmap_location_block($op = 'list', $delta = 0, $edit = array()) {
// Save node type specific macros.
$ntypes = node_get_types();
foreach ($ntypes as $key => $value) {
$settings = variable_get("location_settings_$key", FALSE);
$settings = variable_get("location_settings_node_$key", FALSE);
if ((isset($settings['multiple']['max']) && $settings['multiple']['max']) || variable_get("location_maxnum_$key", 0)) {
$val = trim($edit["gmap_location_block_macro_$key"]);
if (empty($val)) {
......
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