$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 - Mostly Public'), 'social_restricted' => t('Social - Restricted') ], t('Community Forum') => [ 'forum' => t('Forum - Mostly Public'), 'forum_restricted' => t('Forum - Restricted') ], t('Feed Republish') => [ 'feed' => t('Feed - Mostly Public') ] ]; call_hooks('list_permission_roles',$roles); return $roles; } }