Index: buddy_api/buddy_api.workflowng.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/buddylist2/buddy_api/buddy_api.workflowng.inc,v
retrieving revision 1.1
diff -u -r1.1 buddy_api.workflowng.inc
--- buddy_api/buddy_api.workflowng.inc	16 Jan 2008 12:17:51 -0000	1.1
+++ buddy_api/buddy_api.workflowng.inc	18 Feb 2008 16:06:12 -0000
@@ -14,7 +14,7 @@
   return array(
     'buddy_add' => array(
       '#label' => t('UserA adds UserB to his buddylist'),
-      '#module' => t('buddy_api'),
+      '#module' => t('buddy-api'),
       '#arguments' => array(
         'userA' => array('#entity' => 'user', '#label' => t('UserA, current User')),
         'userB' => array('#entity' => 'user', '#label' => t('UserB, user to add')),
@@ -23,7 +23,7 @@
     ),
     'buddy_add_request' => array(
       '#label' => t('UserA requests to add UserB'),
-      '#module' => t('buddy_api'),
+      '#module' => t('buddy-api'),
       '#arguments' => array(
         'userA' => array('#entity' => 'user', '#label' => t('UserA, current User')),
         'userB' => array('#entity' => 'user', '#label' => t('UserB, user to add')),
@@ -31,8 +31,8 @@
        ),
     ),
     'buddy_remove' => array(
-      '#label' => t('UserA delets UserB from his buddylist'),
-      '#module' => t('buddy_api'),
+      '#label' => t('UserA deletes UserB from his buddylist'),
+      '#module' => t('buddy-api'),
       '#arguments' => array(
         'userA' => array('#entity' => 'user', '#label' => t('UserA, current User')),
         'userB' => array('#entity' => 'user', '#label' => t('UserB, user to delete')),
@@ -41,7 +41,7 @@
     ),
     'buddy_cancel_request' => array(
       '#label' => t('UserA cancels his own request to UserB'),
-      '#module' => t('buddy_api'),
+      '#module' => t('buddy-api'),
       '#arguments' => array(
         'userA' => array('#entity' => 'user', '#label' => t('UserA, current User')),
         'userB' => array('#entity' => 'user', '#label' => t('UserB, potential buddy')),
@@ -50,7 +50,7 @@
     ),
     'buddy_request_accept' => array(
       '#label' => t('UserB accepts request from UserA'),
-      '#module' => t('buddy_api'),
+      '#module' => t('buddy-api'),
       '#arguments' => array(
         'userA' => array('#entity' => 'user', '#label' => t('UserA, new buddy')),
         'userB' => array('#entity' => 'user', '#label' => t('UserB, current User')),
@@ -59,7 +59,7 @@
     ),
     'buddy_request_deny' => array(
       '#label' => t('UserA denys accept from UserB'),
-      '#module' => t('buddy_api'),
+      '#module' => t('buddy-api'),
       '#arguments' => array(
         'userA' => array('#entity' => 'user', '#label' => t('UserA, current User')),
         'userB' => array('#entity' => 'user', '#label' => t('UserB, user which has requested')),
@@ -70,541 +70,13 @@
 }
 
 /**
- * Implementation of hook_configuration()
+ * Implementation of hook_module_info
  */
-function buddy_api_configuration() {
-  $configurations = array (
-  'buddy_api_request_accept_mail' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_request_accept',
-    '#label' => '[MAIL] UserB accepts request from UserA',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_mail_to_user',
-      '#settings' => 
-      array (
-        'from' => '[userB:site-mail]',
-        'from_args' => 
-        array (
-          0 => 'userB',
-        ),
-        'subject' => '[userA:site-name]: [userA:user] has approved your buddylist add request',
-        'subject_args' => 
-        array (
-          0 => 'userA',
-        ),
-        'message' => 'Hi [userB:user],
-
-[userA:user] has approved your request to join his/her buddylist.
-
-Here\'s a link to your new buddies profile:
-
-  [userA:site-url]/index.php?q=user/[userA:uid]
-
-Enjoy your new freedom!
-
-Regards,
-The [userA:site-name] team
-',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-        ),
-      ),
-      '#label' => 'Send a mail to a user',
-      '#argument map' => 
-      array (
-        'userB' => 'user',
-      ),
-    ),
-    '#description' => NULL,
-    '#attributes' => 
-    array (
-    ),
-    '#required' => false,
-    '#tree' => false,
-    '#parents' => 
-    array (
-    ),
-    '#recursion' => false,
-    '#fixed' => false,
-    '#execute' => 'workflow_ng_execute_configuration',
-    '#process' => 
-    array (
-      'workflow_ng_ui_prepare_configuration' => 
-      array (
-      ),
-    ),
-    '#_defaults_applied' => true,
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST MAIL: [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_request_accept_mail',
-  ),
-  'buddy_api_cancel_request' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_cancel_request',
-    '#label' => '[MESSAGE] UserA cancels his own request to UserB',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_drupal_message',
-      '#settings' => 
-      array (
-        'message' => '[buddyinfo:notification]',
-        'message_args' => 
-        array (
-          0 => 'buddyinfo',
-        ),
-        'error' => 0,
-      ),
-      '#label' => 'Show a configurable message on the site',
-    ),
-    '#description' => NULL,
-    '#attributes' => 
-    array (
-    ),
-    '#required' => false,
-    '#tree' => false,
-    '#parents' => 
-    array (
-    ),
-    '#recursion' => false,
-    '#fixed' => false,
-    '#execute' => 'workflow_ng_execute_configuration',
-    '#process' => 
-    array (
-      'workflow_ng_ui_prepare_configuration' => 
-      array (
-      ),
-    ),
-    '#_defaults_applied' => true,
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_cancel_request',
-  ),
-  'buddy_api_request_deny' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_request_deny',
-    '#label' => '[MESSAGE] UserA denys accept from UserB',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_drupal_message',
-      '#settings' => 
-      array (
-        'message' => '[buddyinfo:notification]',
-        'message_args' => 
-        array (
-          0 => 'buddyinfo',
-        ),
-        'error' => 0,
-      ),
-      '#label' => 'Show a configurable message on the site',
-    ),
-    '#description' => NULL,
-    '#attributes' => 
-    array (
-    ),
-    '#required' => false,
-    '#tree' => false,
-    '#parents' => 
-    array (
-    ),
-    '#recursion' => false,
-    '#fixed' => false,
-    '#execute' => 'workflow_ng_execute_configuration',
-    '#process' => 
-    array (
-      'workflow_ng_ui_prepare_configuration' => 
-      array (
-      ),
-    ),
-    '#_defaults_applied' => true,
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_request_deny',
-  ),
-  'buddy_api_remove' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_remove',
-    '#label' => '[MESSAGE] UserA delets UserB from his buddylist',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_drupal_message',
-      '#settings' => 
-      array (
-        'message' => '[buddyinfo:notification]',
-        'message_args' => 
-        array (
-          0 => 'buddyinfo',
-        ),
-        'error' => 0,
-      ),
-      '#label' => 'Show a configurable message on the site',
-    ),
-    '#description' => NULL,
-    '#attributes' => 
-    array (
-    ),
-    '#required' => false,
-    '#tree' => false,
-    '#parents' => 
-    array (
+function buddy_api_module_info() {
+  return array(
+    'buddy_api_workflow_ng_configuration' => array(
+      'file' => 'buddy_api.workflowng.configurations.inc',
+      'file path' => drupal_get_path('module', 'buddy_api'),
     ),
-    '#recursion' => false,
-    '#fixed' => false,
-    '#execute' => 'workflow_ng_execute_configuration',
-    '#process' => 
-    array (
-      'workflow_ng_ui_prepare_configuration' => 
-      array (
-      ),
-    ),
-    '#_defaults_applied' => true,
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_remove',
-  ),
-  'buddy_api_request_accept' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_request_accept',
-    '#label' => '[MESSAGE] UserA accepts request from UserB',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_drupal_message',
-      '#settings' => 
-      array (
-        'message' => '[buddyinfo:notification]',
-        'message_args' => 
-        array (
-          0 => 'buddyinfo',
-        ),
-        'error' => 0,
-      ),
-      '#label' => 'Show a configurable message on the site',
-    ),
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_request_accept',
-  ),
-  'buddy_api_add' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_add',
-    '#label' => '[MESSAGE] UserA adds UserB to his buddylist',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_drupal_message',
-      '#settings' => 
-      array (
-        'message' => '[buddyinfo:notification]',
-        'message_args' => 
-        array (
-          0 => 'buddyinfo',
-        ),
-        'error' => 0,
-      ),
-      '#label' => 'Show a configurable message on the site',
-    ),
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_add',
-  ),
-  'buddy_api_add_request' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_add_request',
-    '#label' => '[MESSAGE] UserA requests to add UserB',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_drupal_message',
-      '#settings' => 
-      array (
-        'message' => '[buddyinfo:notification]',
-        'message_args' => 
-        array (
-          0 => 'buddyinfo',
-        ),
-        'error' => 0,
-      ),
-      '#label' => 'Show a configurable message on the site',
-    ),
-    '#description' => NULL,
-    '#attributes' => 
-    array (
-    ),
-    '#required' => false,
-    '#tree' => false,
-    '#parents' => 
-    array (
-    ),
-    '#recursion' => false,
-    '#fixed' => false,
-    '#execute' => 'workflow_ng_execute_configuration',
-    '#process' => 
-    array (
-      'workflow_ng_ui_prepare_configuration' => 
-      array (
-      ),
-    ),
-    '#_defaults_applied' => true,
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_add_request',
-  ),
-  'buddy_api_request_mail' => 
-  array (
-    '#type' => 'configuration',
-    '#altered' => false,
-    '#event' => 'buddy_add_request',
-    '#label' => '[MAIL] UserA requests to add UserB',
-    '#active' => 1,
-    '#module' => 'workflow-ng',
-    0 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_mail_to_user',
-      '#settings' => 
-      array (
-        'from' => '[userA:site-mail]',
-        'from_args' => 
-        array (
-          0 => 'userA',
-        ),
-        'subject' => '[userB:site-name]: [userA:user] has requested to add you to his/her buddylist',
-        'subject_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-        ),
-        'message' => 'Hi [userB:user],
-
-[userA:user] has requested to add you to his/her buddylist.
-
-His message:
-*************
-[buddyinfo:message]
-*************
-
-Here\'s a link to [userA:user]\'s profile:
-  [userA:site-url]/index.php?q=user/[userA:uid]
-
-To approve/deny this request, log in to [userB:site-url] and see your pending buddy requests.
-
-Enjoy your new freedom!
-
-Regards,
-The [userA:site-name] team',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-      ),
-      '#label' => 'Send a mail to a user',
-      '#argument map' => 
-      array (
-        'userB' => 'user',
-      ),
-    ),
-    1 => 
-    array (
-      '#type' => 'action',
-      '#name' => 'workflow_ng_action_watchdog',
-      '#settings' => 
-      array (
-        'severity' => '0',
-        'type' => 'workflow-ng',
-        'message' => 'BUDDYLIST MAIL: [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
-        'message_args' => 
-        array (
-          0 => 'userA',
-          1 => 'userB',
-          2 => 'buddyinfo',
-        ),
-        'link' => '',
-        'link_args' => 
-        array (
-        ),
-      ),
-      '#label' => 'Log to watchdog',
-    ),
-    '#name' => 'buddy_api_request_mail',
-  ),
-);
- return $configurations;
+  );
 }
-
Index: buddy_api/buddy_api.workflowng.configurations.inc
===================================================================
RCS file: buddy_api/buddy_api.workflowng.configurations.inc
diff -N buddy_api/buddy_api.workflowng.configurations.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ buddy_api/buddy_api.workflowng.configurations.inc	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,546 @@
+<?php
+//$Id$
+
+/**
+ * @file This include file implements the default configurations
+ */
+ 
+/**
+ * Implementation of hook_configuration()
+ */
+function buddy_api_configuration() {
+  $configurations = array (
+  'buddy_api_request_accept_mail' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_request_accept',
+    '#label' => '[MAIL] UserB accepts request from UserA',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_mail_to_user',
+      '#settings' => 
+      array (
+        'from' => '[userB:site-mail]',
+        'from_args' => 
+        array (
+          0 => 'userB',
+        ),
+        'subject' => '[userA:site-name]: [userA:user] has approved your buddylist add request',
+        'subject_args' => 
+        array (
+          0 => 'userA',
+        ),
+        'message' => 'Hi [userB:user],
+
+[userA:user] has approved your request to join his/her buddylist.
+
+Here\'s a link to your new buddies profile:
+
+  [userA:site-url]/index.php?q=user/[userA:uid]
+
+Enjoy your new freedom!
+
+Regards,
+The [userA:site-name] team
+',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+        ),
+      ),
+      '#label' => 'Send a mail to a user',
+      '#argument map' => 
+      array (
+        'userB' => 'user',
+      ),
+    ),
+    '#description' => NULL,
+    '#attributes' => 
+    array (
+    ),
+    '#required' => false,
+    '#tree' => false,
+    '#parents' => 
+    array (
+    ),
+    '#recursion' => false,
+    '#fixed' => false,
+    '#execute' => 'workflow_ng_execute_configuration',
+    '#process' => 
+    array (
+      'workflow_ng_ui_prepare_configuration' => 
+      array (
+      ),
+    ),
+    '#_defaults_applied' => true,
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST MAIL: [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_request_accept_mail',
+  ),
+  'buddy_api_cancel_request' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_cancel_request',
+    '#label' => '[MESSAGE] UserA cancels his own request to UserB',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_drupal_message',
+      '#settings' => 
+      array (
+        'message' => '[buddyinfo:notification]',
+        'message_args' => 
+        array (
+          0 => 'buddyinfo',
+        ),
+        'error' => 0,
+      ),
+      '#label' => 'Show a configurable message on the site',
+    ),
+    '#description' => NULL,
+    '#attributes' => 
+    array (
+    ),
+    '#required' => false,
+    '#tree' => false,
+    '#parents' => 
+    array (
+    ),
+    '#recursion' => false,
+    '#fixed' => false,
+    '#execute' => 'workflow_ng_execute_configuration',
+    '#process' => 
+    array (
+      'workflow_ng_ui_prepare_configuration' => 
+      array (
+      ),
+    ),
+    '#_defaults_applied' => true,
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_cancel_request',
+  ),
+  'buddy_api_request_deny' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_request_deny',
+    '#label' => '[MESSAGE] UserA denys accept from UserB',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_drupal_message',
+      '#settings' => 
+      array (
+        'message' => '[buddyinfo:notification]',
+        'message_args' => 
+        array (
+          0 => 'buddyinfo',
+        ),
+        'error' => 0,
+      ),
+      '#label' => 'Show a configurable message on the site',
+    ),
+    '#description' => NULL,
+    '#attributes' => 
+    array (
+    ),
+    '#required' => false,
+    '#tree' => false,
+    '#parents' => 
+    array (
+    ),
+    '#recursion' => false,
+    '#fixed' => false,
+    '#execute' => 'workflow_ng_execute_configuration',
+    '#process' => 
+    array (
+      'workflow_ng_ui_prepare_configuration' => 
+      array (
+      ),
+    ),
+    '#_defaults_applied' => true,
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_request_deny',
+  ),
+  'buddy_api_remove' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_remove',
+    '#label' => '[MESSAGE] UserA deletes UserB from his buddylist',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_drupal_message',
+      '#settings' => 
+      array (
+        'message' => '[buddyinfo:notification]',
+        'message_args' => 
+        array (
+          0 => 'buddyinfo',
+        ),
+        'error' => 0,
+      ),
+      '#label' => 'Show a configurable message on the site',
+    ),
+    '#description' => NULL,
+    '#attributes' => 
+    array (
+    ),
+    '#required' => false,
+    '#tree' => false,
+    '#parents' => 
+    array (
+    ),
+    '#recursion' => false,
+    '#fixed' => false,
+    '#execute' => 'workflow_ng_execute_configuration',
+    '#process' => 
+    array (
+      'workflow_ng_ui_prepare_configuration' => 
+      array (
+      ),
+    ),
+    '#_defaults_applied' => true,
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_remove',
+  ),
+  'buddy_api_request_accept' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_request_accept',
+    '#label' => '[MESSAGE] UserA accepts request from UserB',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_drupal_message',
+      '#settings' => 
+      array (
+        'message' => '[buddyinfo:notification]',
+        'message_args' => 
+        array (
+          0 => 'buddyinfo',
+        ),
+        'error' => 0,
+      ),
+      '#label' => 'Show a configurable message on the site',
+    ),
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_request_accept',
+  ),
+  'buddy_api_add' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_add',
+    '#label' => '[MESSAGE] UserA adds UserB to his buddylist',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_drupal_message',
+      '#settings' => 
+      array (
+        'message' => '[buddyinfo:notification]',
+        'message_args' => 
+        array (
+          0 => 'buddyinfo',
+        ),
+        'error' => 0,
+      ),
+      '#label' => 'Show a configurable message on the site',
+    ),
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_add',
+  ),
+  'buddy_api_add_request' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_add_request',
+    '#label' => '[MESSAGE] UserA requests to add UserB',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_drupal_message',
+      '#settings' => 
+      array (
+        'message' => '[buddyinfo:notification]',
+        'message_args' => 
+        array (
+          0 => 'buddyinfo',
+        ),
+        'error' => 0,
+      ),
+      '#label' => 'Show a configurable message on the site',
+    ),
+    '#description' => NULL,
+    '#attributes' => 
+    array (
+    ),
+    '#required' => false,
+    '#tree' => false,
+    '#parents' => 
+    array (
+    ),
+    '#recursion' => false,
+    '#fixed' => false,
+    '#execute' => 'workflow_ng_execute_configuration',
+    '#process' => 
+    array (
+      'workflow_ng_ui_prepare_configuration' => 
+      array (
+      ),
+    ),
+    '#_defaults_applied' => true,
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_add_request',
+  ),
+  'buddy_api_request_mail' => 
+  array (
+    '#type' => 'configuration',
+    '#altered' => false,
+    '#event' => 'buddy_add_request',
+    '#label' => '[MAIL] UserA requests to add UserB',
+    '#active' => 1,
+    '#module' => t('buddy-api'),
+    0 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_mail_to_user',
+      '#settings' => 
+      array (
+        'from' => '[userA:site-mail]',
+        'from_args' => 
+        array (
+          0 => 'userA',
+        ),
+        'subject' => '[userB:site-name]: [userA:user] has requested to add you to his/her buddylist',
+        'subject_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+        ),
+        'message' => 'Hi [userB:user],
+
+[userA:user] has requested to add you to his/her buddylist.
+
+His message:
+*************
+[buddyinfo:message]
+*************
+
+Here\'s a link to [userA:user]\'s profile:
+  [userA:site-url]/index.php?q=user/[userA:uid]
+
+To approve/deny this request, log in to [userB:site-url] and see your pending buddy requests.
+
+Enjoy your new freedom!
+
+Regards,
+The [userA:site-name] team',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+      ),
+      '#label' => 'Send a mail to a user',
+      '#argument map' => 
+      array (
+        'userB' => 'user',
+      ),
+    ),
+    1 => 
+    array (
+      '#type' => 'action',
+      '#name' => 'workflow_ng_action_watchdog',
+      '#settings' => 
+      array (
+        'severity' => '0',
+        'type' => 'workflow-ng',
+        'message' => 'BUDDYLIST MAIL: [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
+        'message_args' => 
+        array (
+          0 => 'userA',
+          1 => 'userB',
+          2 => 'buddyinfo',
+        ),
+        'link' => '',
+        'link_args' => 
+        array (
+        ),
+      ),
+      '#label' => 'Log to watchdog',
+    ),
+    '#name' => 'buddy_api_request_mail',
+  ),
+);
+ return $configurations;
+}
+
