You are here

function freelinking_page_form_submit in Freelinking 6.2

Same name and namespace in other branches
  1. 5 freelinking.module \freelinking_page_form_submit()
  2. 6 freelinking.module \freelinking_page_form_submit()

File

./freelinking.module, line 364

Code

function freelinking_page_form_submit($form_id, &$form_state) {

  // !!! May be possible to call this w/o the right privileges. More research is needed.
  $op = $form_state['values']['operation'];

  // Filter out unchecked links
  $links = array_filter($form_state['values']['links']);

  /*
   * perhaps perform other operations besides delete (which requires a confirm form, from hook_page()
   * maybe this would be better done w/ a multistep form, which would allow for more complex operations
   *
   * for now, don't do anything, and let hook_page() confirm the delete
   */
}