function commons_follow_get_flags in Drupal Commons 7.3
Returns a list of Commons Follow Flag objects.
1 call to commons_follow_get_flags()
- commons_follow_get_flag_ids in modules/
commons/ commons_follow/ commons_follow.module - Returns an array of Commons Follow flags keyed on the numeric flag ID.
File
- modules/
commons/ commons_follow/ commons_follow.module, line 268
Code
function commons_follow_get_flags() {
$flags = flag_get_flags();
foreach ($flags as $key => $flag) {
if (substr($key, 0, 14) != 'commons_follow') {
unset($flags[$key]);
}
}
return $flags;
}