From 35aa843f9d31d5045816eac1873c3fc3a2799296 Mon Sep 17 00:00:00 2001 From: Brandon Bergren <bdragon@rtk0.net> Date: Thu, 13 Jan 2011 00:57:23 +0000 Subject: [PATCH] More WIP. Disable some stuff that isn't working (and I don't want to implement in that way anyway.) --- gmap_plugin_style_gmapextended.inc | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/gmap_plugin_style_gmapextended.inc b/gmap_plugin_style_gmapextended.inc index 2ed3143..75748c4 100644 --- a/gmap_plugin_style_gmapextended.inc +++ b/gmap_plugin_style_gmapextended.inc @@ -37,15 +37,14 @@ class gmap_plugin_style_gmapextended extends views_plugin_style { $options['enablermt'] = array('default' => FALSE); $options['rmtcallback'] = array('default' => ''); + /* $options['center_on_nodearg'] = array('default' => 0); $options['center_on_nodearg_arg'] = array('default' => ''); $options['highlight_nodearg'] = array('default' => 0); $options['highlight_nodearg_arg'] = array('default' => ''); $options['highlight_nodearg_color'] = array('default' => '#FF0000'); - - $options['tooltipenabled'] = array('default' => 0); - $options['tooltipfield'] = array('default' => ''); + */ return $options; } @@ -160,16 +159,7 @@ class gmap_plugin_style_gmapextended extends views_plugin_style { '#title' => 'Default values', '#description' => t('You can set the value to use for marker parameters not controlled by fields here.'), ); - // @@@ a bit hacky... - /* - foreach ($purposes as $key => $title) { - $form['fallback_values'][$key] = array( - '#title' => $title, - '#type' => 'textarea', //@@@ - '#default_value' => isset($this->options['fallback_values'][$key]) ? $this->options['fallback_values'][$key] : '', - ); - } - */ + $default = $this->options['fallback_values']; $form['fallback_values']['text'] = array( // @@@ Make this #text_format compatible so people can do neat tricks. '#type' => 'textarea', @@ -225,7 +215,7 @@ class gmap_plugin_style_gmapextended extends views_plugin_style { ); -////////////////////////// +////////////////////////// Form stuff below this line needs attention. $form['macro'] = array( '#type' => 'textarea', @@ -258,7 +248,7 @@ class gmap_plugin_style_gmapextended extends views_plugin_style { '#title' => t('Marker / fallback marker to use'), '#default_value' => $this->options['markertype'], ); - +/* $form['center_on_nodearg'] = array( '#type' => 'checkbox', '#title' => t('Center on node argument'), @@ -300,7 +290,7 @@ class gmap_plugin_style_gmapextended extends views_plugin_style { // '#process' => array('views_process_dependency'), '#dependency' => array('edit-style-options-highlight-nodearg' => array(TRUE)), ); - +*/ } /** -- GitLab