You are here

function opigno_get_teacher_html in Opigno 7

File

./opigno.module, line 854
Contains all hook_implementations and module specific API.

Code

function opigno_get_teacher_html($gid) {
  $teachers = opigno_get_course_teachers($gid);
  $html = "";
  foreach ($teachers as $teacher) {
    $user = user_load($teacher->uid);
    $html .= '<div class="teacher teacher-' . $user->uid . '">';
    $html .= theme('user_picture', array(
      'account' => $user,
    ));
    $html .= theme('username', array(
      'account' => $user,
    ));
    $html .= "</div>";
  }
  return $html;
}