function xmlrpc_example_menu

Same name in other branches
  1. 7.x-1.x xmlrpc_example/xmlrpc_example.module \xmlrpc_example_menu()

Implementation of hook_menu(). Register all the demonstration forms.

Related topics

File

xmlrpc_example/xmlrpc_example.module, line 50

Code

function xmlrpc_example_menu() {
    // This is the server form menu entry. This form can be used to configure
    // some options of the exposed services.
    $items['examples/xmlrpc_server'] = array(
        'title' => 'XMLRPC Server',
        'description' => 'Demonstrates server side XMLRPC with Drupal',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'xmlrpc_example_server_form',
        ),
        'access callback' => TRUE,
        'weight' => 0,
    );
    // This is the client form menu entry.
    $items['examples/xmlrpc_client'] = array(
        'title' => 'XMLRPC Client',
        'description' => 'Demonstrates client side XMLRPC with Drupal',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'xmlrpc_example_client_form',
        ),
        'access callback' => TRUE,
        'weight' => 1,
    );
    return $items;
}