You are here

function og_group_content_states in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og.module \og_group_content_states()

Return the states a group content can be in.

12 calls to og_group_content_states()
OgMetaData::testOgMembershipMetaData in ./og.test
Test the og_get_entity_groups() API function.
OgUiManagePeopleTestCase::testOgUiEditMembershipStatus in og_ui/og_ui.test
Change membership status for a single group user.
og_entity_property_info in ./og.module
Implements hook_entity_property_info().
og_handler_field_group_audience_state::render in includes/views/handlers/og_handler_field_group_audience_state.inc
Render the field.
og_handler_filter_group_audience_state::get_value_options in includes/views/handlers/og_handler_filter_group_audience_state.inc
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.

... See full list

2 string references to 'og_group_content_states'
OgMembershipMetadataController::entityPropertyInfo in ./og.info.inc
og_rules_condition_info in ./og.rules.inc
Implements hook_rules_condition_info().

File

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

Code

function og_group_content_states() {
  return array(
    OG_STATE_ACTIVE => t('Active'),
    OG_STATE_PENDING => t('Pending'),
    OG_STATE_BLOCKED => t('Blocked'),
  );
}