You are here

function media_admin_config_browser_pre_submit in D7 Media 7

Same name and namespace in other branches
  1. 7.4 includes/media.admin.inc \media_admin_config_browser_pre_submit()
  2. 7.2 includes/media.admin.inc \media_admin_config_browser_pre_submit()
  3. 7.3 includes/media.admin.inc \media_admin_config_browser_pre_submit()
1 string reference to 'media_admin_config_browser_pre_submit'
media_admin_config_browser in includes/media.admin.inc
Admin configruation form for media browser settings.

File

includes/media.admin.inc, line 595
This file contains the admin functions for the Media module.

Code

function media_admin_config_browser_pre_submit(&$form, &$form_state) {
  if (!$form_state['values'][media_variable_name('dialog_theme')]) {
    media_variable_del('dialog_theme');
    unset($form_state['values'][media_variable_name('dialog_theme')]);
  }
}