You are here

function og_label in Organic groups 7

Wrapper function; Get the label of a single group.

Parameters

$gid: The group ID.

$sanitize: TRUE if the label should be sanitzied using check_plain(). Defaults to TRUE.

Return value

The label of the group if found, or else the group ID with the entity type and entity ID, sanitized.

15 calls to og_label()
og_context_create_og_group in og_context/og_context.module
Return OG group form context.
og_context_og_group_settings_form in og_context/og_context.module
OG group context settings form.
og_field_audience_autocomplete_validate in ./og.field.inc
Validation callback for a group audience autocomplete element.
og_field_audience_autocomplete_value in ./og.field.inc
Value callback for a node_reference autocomplete element.
og_field_audience_potential_groups_standard in ./og.field.inc
Helper function for og_field_audience_potential_groups().

... See full list

File

./og.module, line 2303
Enable users to create and manage groups with roles and permissions.

Code

function og_label($gid, $sanitize = TRUE) {
  $labels = og_label_multiple(array(
    $gid,
  ), $sanitize);
  return $labels[$gid];
}