flag_get_entity_flag_counts() has as its first line of docs:

 * Get the count of flags for a certain entity.

This is completely wrong. It doesn't even have an entity parameter, so it can't possibly hope to do that!

In in fact returns counts for a particular entity *type*.

While we're at it, this line is 6.x era stuff:

 *   The entity type (usually 'node').

It could perhaps say instead: (for example 'node')

Comments

shabana.navas’s picture

Status: Active » Fixed

Thanks for pointing that out. Fixed and committed.

joachim’s picture

Thanks!

Status: Fixed » Closed (fixed)

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