function asu_webspark_bootstrap_settings_submit($form, &$form_state) { // Set the variables, need to use this instead of theme_get_settings // because the scop of the vars is more global. if ($form_state['values']['asu_brand_header_selector'] != 'custom') { variable_set('asu_brand_header_template', $form_state['values']['asu_brand_header_selector']); } else { variable_set('asu_brand_header_template', $form_state['values']['asu_brand_header_template']); } variable_set('asu_brand_is_student', $form_state['values']['asu_brand_is_student']); variable_set('asu_brand_student_color', $form_state['values']['asu_brand_student_color']); variable_set('asu_brand_header_selector', $form_state['values']['asu_brand_header_selector']); if ($file = $form_state['values']['picture_upload']) { unset($form_state['values']['picture_upload']); $filename = file_unmanaged_copy($file->uri); $form_state['values']['default_picture'] = 1; $form_state['values']['picture_path'] = $filename; } // If the user entered a path relative to the system files directory for // a logo or favicon, store a public:// URI so the theme system can handle it. if (!empty($form_state['values']['picture_path'])) { $form_state['values']['picture_path'] = _system_theme_settings_validate_path($form_state['values']['picture_path']); } // ASU header needs a cache_clear if (module_exists('asu_brand')) { asu_brand_cache_clear(); } }
function innovation_settings_submit($form, &$form_state) { // Turning this all off - Webstandards header // ASU header needs a cache_clear if (module_exists('asu_brand')) { asu_brand_cache_clear(); } }