You are here

function printfriendly_admin_settings_submit in PrintFriendly & PDF 7.3

Same name and namespace in other branches
  1. 7.5 printfriendly.admin.inc \printfriendly_admin_settings_submit()
  2. 7.4 printfriendly.admin.inc \printfriendly_admin_settings_submit()
1 string reference to 'printfriendly_admin_settings_submit'
printfriendly_admin_settings in ./printfriendly.admin.inc
Menu callback administration settings for general options.

File

./printfriendly.admin.inc, line 193
Administrative page callbacks for Service Links module.

Code

function printfriendly_admin_settings_submit(&$form, &$form_state) {
  if ($form_state['values']['printfriendly_page_header'] == 'custom_logo') {
    variable_set('printfriendly_page_custom_header', $form_state['values']['printfriendly_page_custom_header']);
    variable_set('printfriendly_tagline', $form_state['values']['printfriendly_tagline']);
  }
  else {
    variable_set('printfriendly_page_custom_header', '');
    variable_set('printfriendly_tagline', '');
  }
  if (!empty($form_state['values']['printfriendly_custom_css'])) {
    variable_set('printfriendly_custom_css', $form_state['values']['printfriendly_custom_css']);
  }
  else {
    variable_set('printfriendly_custom_css', '');
  }
}