* @return
 *   The flag count with the entity type and id as array keys.
 */
function flag_get_counts($entity_type, $entity_id) {

WRONG.

It's keyed by the flag names.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cs_shadow’s picture

Status: Active » Needs review
FileSize
459 bytes

Fixed the documentation.

joachim’s picture

Status: Needs review » Fixed

Thanks for the patch!

(BTW, characters like @ and () are best avoided in filenames...)

cs_shadow’s picture

@joachim, thanks for the advice, will keep that in mind while naming my patches from now on.

By the way, you think we can commit this?

joachim’s picture

Ooops, looks like I forgot to git push!

  • Commit 236ab6d on 7.x-3.x authored by cs_shadow, committed by joachim:
    Issue #2208677 by cs_shadow: Fixed @return documentation for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.