Right now there is no context to the flag in question (aside from some various data injected via $info). Will attach a patch shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2177859-flag_flag_javascript_info_alter-6.patch | 1.87 KB | markhalliwell |
Right now there is no context to the flag in question (aside from some various data injected via $info). Will attach a patch shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2177859-flag_flag_javascript_info_alter-6.patch | 1.87 KB | markhalliwell |
Comments
Comment #1
markhalliwellComment #2
fabianx commentedIt is always nice to pass contextual data as further parameters to drupal_alter. Works nicely here.
Comment #3
joachim commentedLooks good, but a change in function behaviour needs a corresponding change in documentation!
Comment #4
markhalliwellIronically, the API documentation itself was already inaccurate. Here's an updated patch.
Comment #6
markhalliwellSigh, edited it an old IDE (which doesn't pick that stuff up). Here's the correct patch.
Comment #7
joachim commentedCommitted. Thanks for the fixes to the docs!
git commit -m "Issue #2177859 by Mark Carver: Added \$flag parameter to hook_flag_javascript_info_alter()." --author="markcarver "
Comment #8
joachim commentedChange record: https://drupal.org/node/2181977