View source
<?php
function opigno_features_og_roles_og_features_default_roles() {
$roles = array();
$roles['node:class:coach'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'class',
'name' => 'coach',
);
$roles['node:class:manager'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'class',
'name' => 'manager',
);
$roles['node:course:coach'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'course',
'name' => 'coach',
);
$roles['node:course:forum moderator'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'course',
'name' => 'forum moderator',
);
$roles['node:course:manager'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'course',
'name' => 'manager',
);
$roles['node:course:student'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'course',
'name' => 'student',
);
$roles['node:course:teacher'] = array(
'gid' => 0,
'group_type' => 'node',
'group_bundle' => 'course',
'name' => 'teacher',
);
return $roles;
}