$role, 'result' => $ret ]; call_hooks('get_role_perms', $x); return $x['result']; } /** * @brief Array with translated role names and grouping. * * Return an associative array with grouped role names that can be used * to create select groups like in \e field_select_grouped.tpl. * * @return array */ static public function roles() { $roles = [ t('Social Networking') => [ 'social' => t('Social - Normal'), 'social_restricted' => t('Social - Restricted') ], t('Community Group') => [ 'forum' => t('Group - Normal'), 'forum_restricted' => t('Group - Restricted'), 'forum_moderated' => t('Group - Moderated') ], t('Collection') => [ 'collection' => t('Collection - Normal'), 'collection_restricted' => t('Collection - Restricted') ], t('Feed Republish') => [ 'feed' => t('Feed Republish') ] ]; call_hooks('list_permission_roles',$roles); return $roles; } }