function bbb_node_view in BigBlueButton 7
Implement HOOK_node_view().
File
- ./
bbb.module, line 436 - Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.
Code
function bbb_node_view($node, $view_mode, $langcode) {
if (!bbb_is_meeting_type($node->type)) {
return;
}
if (!variable_get('bbb_content_type_show_status_' . $node->type, FALSE)) {
return;
}
$meeting = bbb_get_meeting($node->nid);
$node->content['bbb_meeting_status'] = array(
'#markup' => theme('bbb_meeting_status', array(
'meeting' => $meeting,
)),
'#weight' => 10,
);
$node->content['bbb_meeting_record'] = array(
'#markup' => theme('bbb_meeting_record', array(
'meeting' => $meeting,
)),
'#weight' => 11,
);
}