function hook_social_group_allowed_join_method_description_alter in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_group/social_group.api.php \hook_social_group_allowed_join_method_description_alter()
- 10.1.x modules/social_features/social_group/social_group.api.php \hook_social_group_allowed_join_method_description_alter()
- 10.2.x modules/social_features/social_group/social_group.api.php \hook_social_group_allowed_join_method_description_alter()
Provide a description for a given key from the content visibility #options.
Parameters
string $description: The descriptive.
1 invocation of hook_social_group_allowed_join_method_description_alter()
- social_group_allowed_join_method_description in modules/
social_features/ social_group/ social_group.module - Returns a description array for the field_group_allowed_join_method options.
File
- modules/
social_features/ social_group/ social_group.api.php, line 168 - Hooks provided by the Social Group module.
Code
function hook_social_group_allowed_join_method_description_alter($key, &$description) {
switch ($key) {
case 'join_method_extra':
$description = '<strong>' . t('QR Code')
->render() . '</strong>';
$description .= '-' . t('All users can join by scanning a QR code')
->render();
$description .= '</p>';
break;
case 'single_sign_on':
$description = '<strong>' . t('Single Sign on')
->render() . '</strong>';
$description .= '-' . t('All users can join by SSO')
->render();
$description .= '</p>';
break;
}
}