function pm_block_user_more_submit

1 pm_block_user.module pm_block_user_more_submit($form, &$form_state)
7-1 pm_block_user.admin.inc pm_block_user_more_submit($form, &$form_state)
7-2 pm_block_user.admin.inc pm_block_user_more_submit($form, &$form_state)
6-2 pm_block_user.admin.inc pm_block_user_more_submit($form, &$form_state)

Submit handler for 'More' button, adds a new action.

See also

pm_block_user_remove_submit()

1 string reference to 'pm_block_user_more_submit'
pm_block_user_settings in pm_block_user/pm_block_user.admin.inc
Menu callback for blocked user settings.

File

pm_block_user/pm_block_user.admin.inc, line 128
Administration menu callbacks for pm_block_user.module.

Code

function pm_block_user_more_submit($form, &$form_state) {
  unset($form_state['submit_handlers']);
  form_execute_handlers('submit', $form, $form_state);
  // Get the submitted actions, then put them into a special area of
  // the $form_state.
  $submitted_values = $form_state['values'];
  // Add an empty action.
  $submitted_values['block_actions'][] = array();
  $form_state['pm_block_user'] = $submitted_values;
  // Rebuild the form by passing our $form_state through the
  // pm_block_user_settings() builder function.
  $form_state['rebuild'] = TRUE;
}