You are here

function party_plugin_display_party_piece::options_submit in Party 7

Same name and namespace in other branches
  1. 8.2 includes/views/party_plugin_display_party_piece.inc \party_plugin_display_party_piece::options_submit()

Perform any necessary changes to the form values prior to storage.

There is no need for this function to actually store the data.

Overrides views_plugin_display::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;
  }
}