function services_client_wizard_form_mapping in Services Client 7.2
Form step 3; Mapping.
1 string reference to 'services_client_wizard_form_mapping'
- services_client_wizard in ./
services_client.admin.inc - Create new mapping wizard.
File
- ./
services_client.admin.inc, line 257 - Administration pages for configuring services client module.
Code
function services_client_wizard_form_mapping($form, &$form_state) {
// General ajax wrapper
$form['#prefix'] = '<div id="wizard-entity-wrapper">';
$form['#suffix'] = '</div>';
// Determine no of avaialble rows
$form_state['rows'] = isset($form_state['rows']) ? $form_state['rows'] : 1;
// Display selector in table
$form['mapping'] = array(
'#theme' => 'services_client_mapping_rows',
'#tree' => TRUE,
);
for ($i = 0; $i < $form_state['rows']; $i++) {
$form['mapping'][$i] = services_client_wizard_form_mapping_row($form, $form_state, $i);
}
$form['add_row'] = array(
'#type' => 'submit',
'#value' => t('Add mapping'),
'#submit' => array(
'services_client_wizard_form_mapping_add_row',
),
'#ajax' => array(
'callback' => 'services_client_wizard_form_ajax',
'wrapper' => 'wizard-entity-wrapper',
),
);
return $form;
}