You are here

function domain_form_sitename_submit in Domain Access 6.2

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

FormsAPI submit handler to track site name changes.

2 string references to 'domain_form_sitename_submit'
domain_form_system_site_information_settings_alter in ./domain.module
Update the default domain's sitename.
domain_settings_form_alter in domain_settings/domain_settings.module
Implement hook_form_alter()

File

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

Code

function domain_form_sitename_submit($form, &$form_state) {
  db_query("UPDATE {domain} SET sitename = '%s' WHERE domain_id = 0", $form_state['values']['site_name']);
  variable_set('domain_sitename', $form_state['values']['site_name']);
  drupal_set_message(t('Primary domain settings updated.'));
}