You are here

function hubspot_admin_settings_submit in HubSpot 7.2

Same name and namespace in other branches
  1. 7.3 hubspot.admin.inc \hubspot_admin_settings_submit()

Submit handler for hubspot_admin_settings().

File

./hubspot.admin.inc, line 95
Provides admin settings page to adjust HubSpot API key, debugging settings, JavaScript embedding, and form submission settings.

Code

function hubspot_admin_settings_submit($form, &$form_state) {
  variable_set('hubspot_portalid', $form_state['values']['hubspot_portalid']);
  variable_set('hubspot_debug_email', $form_state['values']['hubspot_debug_email']);
  variable_set('hubspot_debug_on', $form_state['values']['hubspot_debug_on']);
  variable_set('hubspot_log_code', $form_state['values']['hubspot_log_code']);
  $txn = db_transaction();
  drupal_set_message(t('The configuration options have been saved.'));
}