Index: pingback.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pingback/pingback.admin.inc,v
retrieving revision 1.3
diff -u -p -r1.3 pingback.admin.inc
--- pingback.admin.inc	15 Mar 2008 00:30:32 -0000	1.3
+++ pingback.admin.inc	14 Aug 2008 13:31:22 -0000
@@ -31,7 +31,11 @@ function pingback_settings_form() {
   $form['pingback_mode'] = array(
     '#type' => 'radios',
     '#title' => t('Pingback autoping'),
-    '#options' => array('off' => t('Never'), 'submit' => t('When creating and updating nodes'), 'cron' => t('On cron run')),
+    '#options' => array(
+      PINGBACK_PING_OFF => t('Never'),
+      PINGBACK_PING_ON_SUBMIT => t('When creating and updating nodes'),
+      PINGBACK_PING_ON_CRON => t('On cron run'),
+    ),
     '#default_value' => variable_get('pingback_mode', 'off'),
     '#description' => t('When to automatically ping linked sites.  Performance of cron mode is still poor if post creation and update traffic is very high.'), //to devs: every node update will invalidate the variable cache, so it is not appropriate for sites that has many concurrent node insert / update, e.g. 50 node updates each second.
   );
Index: pingback.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pingback/pingback.module,v
retrieving revision 1.3.2.2
diff -u -p -r1.3.2.2 pingback.module
--- pingback.module	14 Aug 2008 10:13:04 -0000	1.3.2.2
+++ pingback.module	14 Aug 2008 13:31:22 -0000
@@ -2,6 +2,21 @@
 // $Id: pingback.module,v 1.0.0.1 2007/07/26 23:17:13 dww Exp $
 
 /**
+ * Don't send Pingback pings.
+ */
+define('PINGBACK_PING_OFF', 0);
+
+/**
+ * Send Pingback pings when creating and updating nodes.
+ */
+define('PINGBACK_PING_ON_SUBMIT', 1);
+
+/**
+ * Send Pingback pings when cron runs.
+ */
+define('PINGBACK_PING_ON_CRON', 2);
+
+/**
  * Implementation of hook_perm().
  */
 function pingback_perm() {
