You are here

function salesforce_api_settings_form_submit in Salesforce Suite 7

Same name and namespace in other branches
  1. 6.2 salesforce_api/ \salesforce_api_settings_form_submit()
  2. 7.2 salesforce_api/ \salesforce_api_settings_form_submit()

Settings form submit handler so that password doesn't get deleted.

1 string reference to 'salesforce_api_settings_form_submit'
salesforce_api_settings_form in salesforce_api/
The settings form at admin/config/salesforce.


salesforce_api/, line 121
Contains the admin page callbacks for the Salesforce module, including forms for general settings and fieldmap administration.


function salesforce_api_settings_form_submit(&$form, &$form_state) {

  // If the user hit "Save Configuration" and the required field
  // salesforce_api_password is blank, try to get it from variables
  if ($form_state['values']['submit'] == $form_state['values']['op'] and empty($form_state['values']['salesforce_api_password'])) {
    $pass = variable_get('salesforce_api_password', FALSE);
    if (isset($pass)) {
      $form_state['values']['salesforce_api_password'] = $pass;