function _themekey_paths_submit in ThemeKey 6
Function _themekey_paths_submit().
File
- ./
themekey_admin.inc, line 89
Code
function _themekey_paths_submit($form, &$form_state) {
if (isset($form_state['values']['table'])) {
foreach ($form_state['values']['table'] as $id => $item) {
if (empty($item['path'])) {
_themekey_path_del($id);
}
else {
$item['id'] = $id;
_themekey_path_set($item);
}
}
}
//
if (!empty($form_state['values']['addtable']['add']['path'])) {
_themekey_path_set($form_state['values']['addtable']['add']);
}
drupal_set_message(t('The configuration options have been saved.'));
}