You are here

function services_client_wizard in Services Client 7.2

Create new mapping wizard.

1 string reference to 'services_client_wizard'
services_client_menu in ./services_client.module
Implementation of hook_menu().

File

./services_client.admin.inc, line 61
Administration pages for configuring services client module.

Code

function services_client_wizard($step = NULL) {
  $form_info = array(
    'id' => 'services_client_wizard',
    'path' => "admin/structure/services_client/wizard/%step",
    'show trail' => TRUE,
    'show back' => TRUE,
    'show return' => FALSE,
    'finish callback' => 'services_client_wizard_form_finish',
    'cancel callback' => 'services_client_wizard_form_cancel',
    'order' => array(
      'connection' => t('Connection'),
      'entity' => t('Entity selector'),
      'mapping' => t('Field mapping'),
    ),
    'forms' => array(
      'connection' => array(
        'form id' => 'services_client_wizard_form_details',
      ),
      'entity' => array(
        'form id' => 'services_client_wizard_form_entity',
      ),
      'mapping' => array(
        'form id' => 'services_client_wizard_form_mapping',
      ),
    ),
  );
  if (empty($step)) {
    $step = 'connection';
  }
  ctools_include('wizard');
  $form_state = array();
  $form = ctools_wizard_multistep_form($form_info, $step, $form_state);
  $output = drupal_render($form);
  return $output;
}