function freelinking_page_form_submit in Freelinking 5
Same name and namespace in other branches
- 6 freelinking.module \freelinking_page_form_submit()
- 6.2 freelinking.module \freelinking_page_form_submit()
File
- ./
freelinking.module, line 152
Code
function freelinking_page_form_submit($form_id, $form_values) {
// Can I assume at this point the user has the right privs, or they wouldn't have been able to render the form in the first place?
// (probly not, i spose, but we'll make this simplifying assumption for now..)
$op = $form_values['operation'];
// Filter out unchecked links
$links = array_filter($form_values['links']);
// perhaps perform other operations besides delete (which requires a confirm form, from the _page callback)
// maybe this would be better done with a multistep form, that would allow for more complex operations like
// creating a bunch of nodes at once?
// for now, don't do anything, and let the _page callback confirm the delete
}