You are here

function _colors_og_callback in Colors 7

Wrapper around og_get_all_group() and og_label().

Return value

array An array keyed by group ID, containing the group label.

1 string reference to '_colors_og_callback'
og_colors_info in includes/og.colors.inc
Implements hook_colors_info().

File

includes/og.colors.inc, line 28
Provides Color integration on behalf of og.module.

Code

function _colors_og_callback() {
  $gids = array();
  foreach (og_get_all_group() as $gid) {
    $gids[$gid] = og_label($gid);
  }
  return $gids;
}