function og_group_content_states in Organic groups 7
Same name and namespace in other branches
- 7.2 og.module \og_group_content_states()
Return the states a group content can be in.
8 calls to og_group_content_states()
- OgGroupApi::testGetEntityGroups in ./
og.test - Test the og_get_entity_groups() API function.
- OgUiManagePeopleTestCase::testOgUiAddPeople in og_ui/
og_ui.test - Testing adding people via group/[entity_type]/[etid]/admin/people/add-user.
- og_handler_field_group_audience_state::render in includes/
views/ og_handler_field_group_audience_state.inc - Render the field.
- og_handler_filter_group_audience_state::get_value_options in includes/
views/ 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.
- og_member_ctools_access_settings in plugins/
access/ og_member.inc - Settings form for the 'by perm' access plugin
2 string references to 'og_group_content_states'
- OgMembershipMetadataController::entityPropertyInfo in includes/
og.info.inc - og_rules_condition_info in ./
og.rules.inc - Implements hook_rules_condition_info().
File
- ./
og.module, line 3066 - 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'),
);
}