function party_hat_context_party_with_hats_settings_form in Party 8.2
Same name and namespace in other branches
- 7 modules/party_hat/plugins/contexts/party_new_with_hats.inc \party_hat_context_party_with_hats_settings_form()
Build settings form.
1 string reference to 'party_hat_context_party_with_hats_settings_form'
- party_new_with_hats.inc in modules/
party_hat/ plugins/ contexts/ party_new_with_hats.inc - Plugin to provide a new party context with a preconfigured set of hats.
File
- modules/
party_hat/ plugins/ contexts/ party_new_with_hats.inc, line 56 - Plugin to provide a new party context with a preconfigured set of hats.
Code
function party_hat_context_party_with_hats_settings_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['hats'] = array(
'#title' => t('Hats'),
'#type' => 'checkboxes',
'#options' => party_hat_build_hat_options(NULL, NULL, 'edit'),
'#default_value' => $conf['hats'],
);
return $form;
}