You are here

function domain_form_sitename_submit in Domain Access 7.3

Same name and namespace in other branches
  1. 5 domain.module \domain_form_sitename_submit()
  2. 6.2 domain.module \domain_form_sitename_submit()
  3. 7.2 domain.module \domain_form_sitename_submit()

FormsAPI submit handler to track site name changes.

1 string reference to 'domain_form_sitename_submit'
domain_form_system_site_information_settings_alter in ./domain.module
Update the default domain's sitename.

File

./domain.module, line 2749
Core module functions for the Domain Access suite.

Code

function domain_form_sitename_submit($form, &$form_state) {

  // When using Domain Settings, we cannot save this value.
  if (isset($form['domain_settings'])) {
    return;
  }
  db_update('domain')
    ->condition('domain_id', 0)
    ->fields(array(
    'sitename' => $form_state['values']['site_name'],
  ))
    ->execute();
  drupal_set_message(t('Primary domain settings updated.'));
}