Index: system_service.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/services/system_service/system_service.module,v
retrieving revision 1.2
diff -u -r1.2 system_service.module
--- system_service.module	16 Jan 2007 19:08:53 -0000	1.2
+++ system_service.module	25 Sep 2007 16:14:07 -0000
@@ -67,6 +67,41 @@
       ),
       '#return'   => 'struct',
       '#help'     => t('Send an e-mail message, using Drupal variables and default settings.')),
+      
+    // system.getVariable
+    array(
+      '#method'   => 'system.getVariable',
+      '#callback' => 'system_service_getvariable',
+      '#args'     => array(
+        array(
+          '#name'         => 'name',
+          '#type'         => 'string',
+          '#description'  => t('The name of the variable to return.')),
+        array(
+          '#name'         => 'default',
+          '#type'         => 'string',
+          '#optional'     => TRUE, 
+          '#description'  => t('The default value to use if this variable has never been set.'))),
+      '#return'   => 'string',
+      '#help'     => t('Return a persistent variable.')),
+      
+    // system.setVariable
+    array(
+      '#method'   => 'system.setVariable',
+      '#callback' => 'system_service_setvariable',
+      '#args'     => array(
+        array(
+          '#name'         => 'name',
+          '#type'         => 'string',
+          '#description'  => t('The name of the variable to set.')
+          ),
+        array(
+          '#name'         => 'value',
+          '#type'         => 'string',
+          '#description'  => t('The value to set.')
+        ),
+      ),
+      '#help'     => t('Set a persistent variable.')),
   );
 }
 
@@ -90,4 +125,18 @@
   }
   
   return $status;
-}
\ No newline at end of file
+}
+
+/**
+ * Returns a specified variable.
+ */
+function system_service_getvariable($name, $default = NULL) {
+  return variable_get($name, $default);
+}
+
+/**
+ * Set a variable.
+ */
+function system_service_setvariable($name, $value) {
+  variable_set($name, $value);
+}

