Posted by RobLoach on June 13, 2012 at 4:21pm
Project:
Drupal core
Introduced in branch:
8.x Description:
XML-RPC allows external systems to communicate with Drupal. Before Drupal 8, this functionality was part of the internal system. For Drupal 8, the XML-RPC module must be enabled in order to allow these communications to take place.
Drupal 7
<?php
$result = xmlrpc('http://example.com/xmlrpc.php', array(
'service.methodName' => array($parameter, $second, $third),
));
?>Drupal 8
mymodule.info.yml
dependencies:
- xmlrpc<?php
// This code now depends on the xmlrpc module.
$result = xmlrpc('http://example.com/xmlrpc.php', array(
'service.methodName' => array($parameter, $second, $third),
));
?>Once the XML-RPC module is enabled, the XML-RPC callback is the same as it was in Drupal 7 at http://example.com/xmlrpc.php .
Impacts:
Site builders, administrators, editors
Module developers