Skip to content
Snippets Groups Projects
Commit e98e4467 authored by haiiro.shimeji's avatar haiiro.shimeji
Browse files

The variable table in D7 does not have 'file_downloads'

parent 32dacaa2
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ function gmap_admin_settings($form, &$form_state) { ...@@ -17,8 +17,8 @@ function gmap_admin_settings($form, &$form_state) {
'#title' => t('Google Map Initialize'), '#title' => t('Google Map Initialize'),
); );
if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) != FILE_DOWNLOADS_PUBLIC) { if (file_default_scheme() != 'public') {
$form['initialization']['gmap_private_markerfile'] = array( $form['initialization']['gmap_private_markerfile'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Path to gmap_markers.js'), '#title' => t('Path to gmap_markers.js'),
'#description' => t('You are using the <em>Private</em> download method. For markers to work properly. you must press the <em>Regenerate</em> button, manually copy js/gmap_markers.js from the files directory to a location accessible by the webserver, and enter the file path relative to the Drupal root (including the filename) in this field. Example: <em>sites/default/misc/gmap_markers.js</em>'), '#description' => t('You are using the <em>Private</em> download method. For markers to work properly. you must press the <em>Regenerate</em> button, manually copy js/gmap_markers.js from the files directory to a location accessible by the webserver, and enter the file path relative to the Drupal root (including the filename) in this field. Example: <em>sites/default/misc/gmap_markers.js</em>'),
......
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