You are here

function salesforce_api_import_salesforce_fieldmap in Salesforce Suite 7.2

Form builder function for a fieldmap import. Makes it possible to save a fieldmap from generated code.

1 string reference to 'salesforce_api_import_salesforce_fieldmap'
salesforce_api_menu in salesforce_api/salesforce_api.module
Implements hook_menu().


salesforce_api/salesforce_api.module, line 2169
Defines an API that enables modules to interact with the Salesforce server.


function salesforce_api_import_salesforce_fieldmap($form, &$form_state) {
  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => t('Fieldmap'),
    '#description' => t('Enter the name of the new fieldmap. This is optional and is not necessary if you do not wish to rename the object. Lowercase letters, numbers, and underscores only please.'),
  $form['object'] = array(
    '#type' => 'textarea',
    '#title' => t('Paste exported code here'),
    '#rows' => 15,
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  return $form;