You are here

function og_ctools_context_convert_list_alter in Organic groups 7

Implements hook_ctools_context_convert_list_alter().

Add our own converter list to the entity:group context provided by CTools.

File

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

Code

function og_ctools_context_convert_list_alter(&$plugin, &$converters) {
  if (!empty($plugin['context name']) && $plugin['context name'] == 'group') {

    // Add group converter list.
    $converters = $converters + array(
      'gid' => t('Group ID'),
      'entity_type' => t('Entity type'),
      'entity_id' => t('Entity ID'),
      'label' => t('Group label'),
    );
  }
}