function party_plugin_display_party_piece::options_submit in Party 8.2
Same name and namespace in other branches
- 7 includes/views/party_plugin_display_party_piece.inc \party_plugin_display_party_piece::options_submit()
File
- includes/
views/ party_plugin_display_party_piece.inc, line 99 - Views plugin for party pieces.
Class
- party_plugin_display_party_piece
- @file Views plugin for party pieces.
Code
function options_submit(&$form, &$form_state) {
// It is very important to call the parent function here:
parent::options_submit($form, $form_state);
switch ($form_state['section']) {
case 'party_piece_path':
// @todo: validate as proper path-y string. Can core menu help?
// @todo: validate as not clashing with other paths on the party.
$this
->set_option('party_piece_path', $form_state['values']['party_piece_path']);
break;
case 'party_piece_label':
$this
->set_option('party_piece_label', $form_state['values']['party_piece_label']);
break;
}
}