function drupal_xmlrpc in Drupal 5
Same name and namespace in other branches
- 4 modules/drupal.module \drupal_xmlrpc()
Implementation of hook_xmlrpc().
File
- modules/
drupal/ drupal.module, line 241 - Lets users log in using a Drupal ID and can notify a central server about your site.
Code
function drupal_xmlrpc() {
$xmlrpc = array();
if (variable_get('drupal_client_service', 0)) {
$xmlrpc[] = array(
'drupal.client.ping',
'drupal_client_ping',
array(
'array',
'array',
'array',
),
t('Handling ping request'),
);
}
if (variable_get('drupal_authentication_service', 0)) {
$xmlrpc[] = array(
'drupal.login',
'drupal_login',
array(
'int',
'string',
'string',
),
t('Logging into a Drupal site'),
);
}
return $xmlrpc;
}