You are here

function party_hat_context_party_with_hats_settings_form_submit in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_hat/plugins/contexts/party_new_with_hats.inc \party_hat_context_party_with_hats_settings_form_submit()

Submit the settings form

File

modules/party_hat/plugins/contexts/party_new_with_hats.inc, line 72
Plugin to provide a new party context with a preconfigured set of hats.

Code

function party_hat_context_party_with_hats_settings_form_submit($form, &$form_state) {
  $form_state['conf']['hats'] = drupal_map_assoc($form_state['values']['hats']);
  unset($form_state['conf']['hats'][0]);
}