function hook_social_event_enroll_method_description_alter in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_event/social_event.api.php \hook_social_event_enroll_method_description_alter()
- 10.1.x modules/social_features/social_event/social_event.api.php \hook_social_event_enroll_method_description_alter()
- 10.2.x modules/social_features/social_event/social_event.api.php \hook_social_event_enroll_method_description_alter()
Provide a description for a given key from the enroll method #options.
Parameters
string $description: The descriptive.
1 invocation of hook_social_event_enroll_method_description_alter()
- social_event_enroll_method_description in modules/
social_features/ social_event/ social_event.module - Returns a description array for the field_enroll_method options.
File
- modules/
social_features/ social_event/ social_event.api.php, line 21 - Hooks provided by the Social Event module.
Code
function hook_social_event_enroll_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;
}
}