Changes since 7.x-3.4:
- #2196085 by cs_shadow: Fixed hook_entity_delete() getting invoked only after field data is deleted.
- #2121053 by joachim: Fixed field_attach_presave() getting called too late on when inserting or updating a Flagging.
- #2255199 by jhedstrom, joachim: Fixed button in flagging confirm form showing raw HTML tags if the flag link text contains HTML.
- #2254417 by joachim: Fixed Flagging fields in flag confirm form not getting validated by Field API.
- #2238349 by czigor: Fixed Issue-User who flagged the xxx rules action does not respect global flag.
- #2207543 by cs_shadow: Fixed strict warning with array_keys().
- #2027091 by hefox, jhedstrom: Added hook_flag_default_flags_alter to allow altering of default flag definitions.
Code clean-up and tests:
- #2257603 by joachim: Moved code for populating or creating a Flagging entity to be together.
- #2196055 by joachim: Added testing of Flagging properties, restoring commented-out assertions.
- #2254415 by joachim: Removed todo regarding field_attach_validate(), added documentation stating the caller's responsibility to perform Field API validation.
- #2254399 by joachim: Removed pointless checking of $account: it is always at least set to the $user global.
- #2254171 by joachim: Moved Rules event invocation to a helper method.
- #2250543 by joachim: Removed pointless call to get_flagging().
- #2202969 by joachim: Changed low-level helper methods for flag_flag::flag().
- #2245601 by cs_shadow, joachim: Fixed coding standards errors.
- #2210061 by cs_shadow: Changed UI labels of test cases to remove 'Flag' prefix.