function drupal_xmlrpc in Drupal 4
Same name and namespace in other branches
- 5 modules/drupal/drupal.module \drupal_xmlrpc()
Implementation of hook_xmlrpc().
File
- modules/
drupal.module, line 240 - 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;
}