function advise_perm

7.x advise.module advise_perm()
6.x advise.module advise_perm()
4.x advise.module advise_perm()
5.x advise.module advise_perm()

Implementation of hook_perm

File

modules/advise/advise.module, line 1392

Code

function advise_perm() {
  $perms = array();

  $perms ["view_any_advising_session"] = array(
    "title" => t("View any advising session"),
    "description" => t("The user is allowed to view any advising sessions for any user.
                        For example, the user is an advisor."),
  );

  $perms ["view_advisee_advising_session"] = array(
    "title" => t("View advisee advising sessions"),
    "description" => t("The user is allowed to view their assigned advisee's advising sessions.
                        For example, the user is a limited advisor with advisees assigned."),
  );


  $perms ["view_own_advising_session"] = array(
    "title" => t("View own advising session"),
    "description" => t("The user is allowed to view their own advising sessions.
                        For example, the user is a student."),
  );


  $perms ["can_delete_own_advising_session_3_months"] = array(
    "title" => t("Can delete advising session for 3 months (faculty/staff only)"),
    "description" => t("The faculty/staff user may delete advising sessions they have made for up to 3 months.  After 3 months, they 
                          will not be able to delete the advising session.  <strong>Note: The user must also have the 'Can advise students' permission as well.</strong>"),
  );



  $perms ["can_advise_students"] = array(
    "title" => t("Can advise students"),
    "description" => t("The user is allowed to advise other students,
                      by clicking a checkbox next to a course, or by selecting
                      a course from an elective group."),
  );

  $perms ["can_substitute"] = array(
    "title" => t("Can substitute"),
    "description" => t("The user is allowed to substitute courses on a student's
                        degree plan."),
  );


  $perms ["toggle_draft"] = array(
    "title" => t("Toggle draft mode"),
    "description" => t("The user toggle 'draft' mode, so they can view draft degree plans
                        in FlightPath."),
  );






  return $perms;
}