l

5.x misc.inc l($text, $path, $query = "", $attributes = array())
4.x misc.inc l($text, $path, $query = "", $attributes = array())

This works like Drupal's l() function for creating links. Ex: l("Click here for course search!", "tools/course-search", "abc=xyz&hello=goodbye", array("class" => "my-class")); Do not include preceeding or trailing slashes.

26 calls to l()
admin_display_courses in modules/admin/admin.courses.inc
This function displays all of our courses for us to edit.
admin_display_degrees in modules/admin/admin.degrees.inc
admin_display_groups in modules/admin/admin.groups.inc
This function will display a list of all our groups.
admin_display_main in modules/admin/admin.module
This is the "main" page for the admin module. It's what the user first sees when the click to go to the Admin page.
admin_display_watchdog in modules/admin/admin.module
Displays recent watchdog entries, from the watchdog table

... See full list

File

includes/misc.inc, line 1415
This file contains misc functions for FlightPath

Code

function l($text, $path, $query = "", $attributes = array()) {
  $rtn = "";

  if ($path == "<front>") {
    $path = variable_get("front_page", "main");
  }


  // Does the path contain possible replacement patterns? (look for %)
  if (strpos($path, "%") !== 0) {
    $path = menu_convert_replacement_pattern($path);
  }

  // Does the query contain possible replacement patterns? (look for %)
  if (strpos($query, "%") !== 0) {
    $query = menu_convert_replacement_pattern($query);
  }

  $rtn .= '<a href="' . fp_url($path, $query) . '" ';

  foreach ($attributes as $key => $value) {
    $rtn .= $key . '="' . $value . '" ';
  }

  $rtn .= ">$text</a>";



  return $rtn;
}