Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
20 Mar 2014 at 16:18 UTC
Updated:
23 May 2014 at 08:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joachim commentedThe Flag TPL surely has a variable for the entity id it's output for. Looking at the preprocessor, looks like it's
BTW it's always a good idea to use devel module to do dpm(get_defined_vars()) in a tpl file to see everything that's there.
Converting this to a bug report so we fix the omissions in the template docs, and tagging as Novice. What's required here is:
- use the devel trick above to get a list of the variables the template has
- check in template_preprocess_flag() to see what they represent
- add the ones that should be there but are missing (we probably don't want things like the CSS class arrays flag_wrapper_classes_array and friends for example)
Comment #2
pebosi commentedSee attached patch
Comment #3
joachim commentedCommitted, with a small tweak for a missing full stop.
Thanks for the patch!