summaryrefslogtreecommitdiff
path: root/includes/view/Rooms_view.php
blob: bb41a4d36e3b73ed57f393e6a15715ef1d12fd75 (plain)
1
2
3
4
5
6
7
8
9
10
<?php

function Room_name_render($room) {
  global $privileges;
  if (in_array('admin_rooms', $privileges))
    return '<a href="' . room_link($room) . '">' . glyph('map-marker') . $room['Name'] . '</a>';
  return $room['Name'];
}

?>