You are here

function oa_core_replace_group in Open Atrium Core 7.2

Replace "group" term in OG with "space"

1 call to oa_core_replace_group()
oa_core_field_attach_view_alter in ./oa_core.module
Implements hook_field_attach_view_alter

File

./oa_core.module, line 829

Code

function oa_core_replace_group(&$field, $context) {
  if (isset($field)) {
    if (isset($context['entity']->type) && $context['entity']->type == OA_SPACE_TYPE) {
      $field = str_replace(t('group'), t('space'), $field);
      $field = str_replace(t('Group'), t('Space'), $field);
    }
  }
}