You are here

function delta_create_theme_settings_template_submit in Delta 7

Same name and namespace in other branches
  1. 6 delta.module \delta_create_theme_settings_template_submit()
1 string reference to 'delta_create_theme_settings_template_submit'
delta_create_theme_settings_template_form in ./delta.module
Form callback for the AJAX form using Popups API

File

./delta.module, line 1027
The Delta Theme API is an advanced manipulation of the Theme Settings API to allow for customization/configuration of theme settings based on node types, context, or groups of paths.

Code

function delta_create_theme_settings_template_submit($form, &$form_state) {
  $delta = $form_state['values'];

  // New Override, Insert query
  db_query("\n      INSERT INTO {delta_theme_settings}  \n        (name, theme, data) \n      VALUES('%s', '%s', '%s')", $delta['delta_template']['name'], $delta['delta_template']['theme'], serialize($delta['delta_template_overrides']));
  drupal_set_message('New theme settings template: ' . $form_state['values']['delta_template']['name'] . ' created.');
}