function zoomapi_meeting_topic_generate in Zoom API 7
Generate topic for a Zoom meeting.
@todo add drupal_alter hook.
Parameters
object $account: The drupal account acting as meeting host.
array $options: Optional array of meeting options.
Return value
string The meeting topic.
2 calls to zoomapi_meeting_topic_generate()
- zoomapi_meeting_create in ./
zoomapi.module - Create Meeting.
- zoomapi_meeting_topic_generate_for_entity in ./
zoomapi.module - Generate topic for a entity-based Zoom meeting.
File
- ./
zoomapi.module, line 609 - Main file for the Zoom API module.
Code
function zoomapi_meeting_topic_generate($account, array $options = []) {
$topic = t('Meeting for @name', [
'@name' => $account->name,
]);
$context = [
'account' => $account,
'options' => $options,
];
drupal_alter('zoomapi_meeting_topic', $topic, $context);
return $topic;
}