You are here

function og_xmlrpc in Organic groups 5.2

Same name and namespace in other branches
  1. 5.8 og.module \og_xmlrpc()
  2. 5 og.module \og_xmlrpc()
  3. 5.3 og.module \og_xmlrpc()
  4. 5.7 og.module \og_xmlrpc()
  5. 6.2 og.module \og_xmlrpc()
  6. 6 og.module \og_xmlrpc()

Implementation of hook_xmlrpc().

File

./og.module, line 2437

Code

function og_xmlrpc() {
  require_once drupal_get_path('module', 'og') . '/og_xmlrpc.inc';
  return array(
    array(
      'og.subscribe_user',
      'og_xmlrpc_subscribe_user',
      array(
        'struct',
        'string',
        'string',
        'int',
        'int',
      ),
      t('Subscribe a user to a group'),
    ),
    array(
      'og.getAllSubscribers',
      'og_xmlrpc_get_all_subscribers',
      array(
        'array',
        'string',
        'string',
        'int',
        'int',
        'int',
      ),
      t('All subscribers for a given group.'),
    ),
    array(
      'og.getUserGroups',
      'og_xmlrpc_get_user_groups',
      array(
        'array',
        'string',
        'string',
        'int',
      ),
      t('Retrieve the group subscriptions for a given user.'),
    ),
  );
}