function commons_anonymous_welcome_text_form_submit in Drupal Commons 7.3
Save the configuration form for set welcome text for anonymous users.
See also
commons_anonymous_welcome_text_form()
File
- ./
commons.install, line 235 - Install, update and uninstall functions for the Commons install profile.
Code
function commons_anonymous_welcome_text_form_submit($form_id, &$form_state) {
$selected_extras = variable_get('commons_selected_extras', array());
if ($form_state['values']['commons_enable_og_access']) {
$selected_extras['og_access'] = TRUE;
}
if ($form_state['values']['commons_install_example_content']) {
$selected_extras['example_content'] = TRUE;
}
variable_set('commons_selected_extras', $selected_extras);
variable_set('commons_anonymous_welcome_title', $form_state['values']['commons_anonymous_welcome_title']);
variable_set('commons_anonymous_welcome_body', $form_state['values']['commons_anonymous_welcome_body']);
}