Index: pullquote.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/pullquote/pullquote.module,v
retrieving revision 1.2
diff -u -r1.2 pullquote.module
--- pullquote.module	10 Jan 2011 22:13:11 -0000	1.2
+++ pullquote.module	23 Feb 2011 04:05:28 -0000
@@ -7,4 +7,53 @@
   $path = drupal_get_path('module', 'pullquote');
   drupal_add_css($path . '/pullquote.css');
   drupal_add_js($path . '/pullquote.js');
-}
\ No newline at end of file
+  drupal_add_css(variable_get('pullquote_css'), 'inline');
+}
+
+/**
+ * Implementation of hook_menu().
+ */
+function pullquote_menu() {
+  $items = array();
+
+  $items['admin/config/pullquote'] = array(
+    'title' => 'Pullquote',
+    'description' => 'Edit pullquote settings and styles.',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('pullquote_form'),
+    'access arguments' => array('access administration pages'),
+    'type' => MENU_NORMAL_ITEM,
+  );
+
+  return $items;
+}
+
+function pullquote_form($form_state) {
+  $css_description = '<p>Adding CSS here will override the default pullquote styling. Here are some CSS tags available for use: <ul><li><code>.pullquote-quote</code>: for styling the main pullquote (i.e. border-top: 1px dotted #94ce18; text-align: center; etc.).</li><li><code>.pullquote-quote.pullquote-left</code>: for styling only pullquotes that are on the left side.</li></ul>';
+  $css_default_value = variable_get('pullquote_css');
+  if ( !isset( $css_default_value ) || $css_default_value == '' ) {
+    $css_default_value = '/* For styling the main pullquote (i.e. border-top: 1px dotted #94ce18; text-align: center; etc.) */
+.pullquote-quote  {
+}
+/* For styling only pullquotes that are on the left side */
+.pullquote-quote.pullquote-left {
+}';
+  }
+
+  $form['css'] = array(
+    '#type' => 'textarea',
+    '#title' => 'Pullquote CSS',
+    '#default_value' => $css_default_value,
+    '#rows' => 10,
+    '#description' => $css_description,
+  );
+  $form = system_settings_form($form);
+  // This is here so that the pullquote_form_submit() function is called
+  unset($form['#submit']);
+  return $form;
+}
+
+function pullquote_form_submit($form, &$form_state) {
+  variable_set('pullquote_css', $form_state['values']['css']);
+  drupal_set_message('The configuration options have been saved.');
+}
