function bbb_is_meeting_owner in BigBlueButton 6
Same name and namespace in other branches
- 7 bbb.module \bbb_is_meeting_owner()
Check if user is meeting owner
File
- ./
bbb.module, line 469 - Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.
Code
function bbb_is_meeting_owner($nid, $account = NULL) {
if (!$account) {
global $user;
$account = $user;
}
$sql = "SELECT COUNT(nid) FROM {bbb_meetings} bm\n INNER JOIN {node} n ON bm.nid = n.nid\n WHERE n.uid = %d\n AND nid = %d";
$owner = db_result(db_query($sql, $account->uid, $nid));
return $owner ? TRUE : FALSE;
}