Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2010 at 22:42 UTC
Updated:
16 Jan 2013 at 22:30 UTC
Jump to comment: Most recent file
We use several ways to pass the flag to validate/submit handlers:
- flag_form() uses $form['#flag'].
- flag_delete_confirm() does $form['fid'] = array('#type' => 'value', '#value' => $flag->fid)
- flag_confirm() does $form['flag_name'] = array('#type' => 'value', '#value' => $flag_name).
- I'm using $form_state['flagging'] for #871064: Making flaggings fieldable.
What should we do about this?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 887360.flag_.standardize-form-flag.patch | 1.96 KB | joachim |
Comments
Comment #1
quicksketchOut of these, $form['#flag'] would be my preference.
Comment #2
mooffie commentedOK, I'll provide a patch after #887324: Modernize the menu items is committed (because it provides the $flag variable).
Comment #3
joachim commented$form['#flag'] is the standard on D7 for passing things to submit handlers.
Comment #4
joachim commentedComment #5
joachim commented#4: 887360.flag_.standardize-form-flag.patch queued for re-testing.
Comment #6
joachim commentedWhat is it with testbot at the moment?
Quicker to run the tests myself...