? .patch
? .svn
? getsatisfaction-options-391762.patch
Index: getsatisfaction.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/getsatisfaction/getsatisfaction.module,v
retrieving revision 1.1
diff -u -F^f -p -r1.1 getsatisfaction.module
--- getsatisfaction.module	11 Dec 2008 11:11:02 -0000	1.1
+++ getsatisfaction.module	25 Apr 2009 19:11:46 -0000
@@ -44,12 +44,18 @@ function getsatisfaction_menu() {
  */
 function getsatisfaction_footer() {
   $company = check_plain(variable_get('getsatisfaction_name', ''));
+  $type = check_plain(variable_get('getsatisfaction_type', 'idea'));
+  $placement = check_plain(variable_get('getsatisfaction_placement', 'left'));
+  $color = check_plain(variable_get('getsatisfaction_color', '#222'));
 
   if (!empty($company) && _getsatisfaction_visibility_pages()) {
     drupal_add_css("http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.css");
     $output .= "<style type='text/css'>@import url('http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.css');</style>
 <script src='http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.js' type='text/javascript'></script>";
-    $script .= "GSFN.feedback('http://getsatisfaction.com/". $company ."/feedback/topics/new?display=overlay&amp;style=idea');";
+    $script .= "var tab_options = {}\n";
+    $script .= "tab_options.placement = \"$placement\";\n";
+    $script .= "tab_options.color = \"$color\"\n";
+    $script .= "GSFN.feedback('http://getsatisfaction.com/". $company ."/feedback/topics/new?display=overlay&style=$type', tab_options);";
     drupal_add_js($script, 'inline', 'footer');
     return $output;
   }
@@ -107,6 +113,41 @@ function getsatisfaction_admin_settings_
     '#description' => t('The company name you have picked when you have created its profile at Get Satisfaction. See the list of all your companies on <a href="@url">Get Satisfaction</a> clicking the "You" menu and selecting "Your Products and Companies". You need to be logged in.', array('@url' => 'http://www.getsatisfaction.com/')),
   );
   
+  $form['account']['getsatisfaction_type'] = array(
+    '#type' => 'radios',
+    '#title' => t('Default type'),
+    '#default_value' => variable_get('getsatisfaction_type', 'idea'),
+    '#options' => array(
+      'idea' => t('Idea'),
+      'question' => t('Question'),
+      'problem' => t('Problem'),
+      'praise' => t('Praise'),
+    ),
+    '#attributes' => array('class' => 'container-inline')
+  );
+  
+  $form['account']['getsatisfaction_placement'] = array(
+    '#type' => 'radios',
+    '#title' => t('Placement'),
+    '#default_value' => variable_get('getsatisfaction_placement', 'left'),
+    '#options' => array(
+      'left' => t('Left'),
+      'right' => t('Right'),
+      'bottom' => t('Bottom'),
+      'hidden' => t('Hidden'),
+    ),
+    '#attributes' => array('class' => 'container-inline')
+  );
+  
+  $form['account']['getsatisfaction_color'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Tab color'),
+    '#default_value' => variable_get('getsatisfaction_color', '#222'),
+    '#size' => 8,
+    '#field_suffix' => t(' HEX or color'),
+    '#attributes' => array('class' => 'container-inline')
+  );
+  
   $options = array(t('Add to every page except the listed pages.'), t('Add to the listed pages only.'));
   $description = t("Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>'));
   $pages = variable_get('getsatisfaction_pages', '');
