path_load

Versions
5 – 6
path_load($pid)
7
path_load($conditions)

Fetch a specific URL alias from the database.

▾ 2 functions call path_load()

path_admin_delete_confirm in drupal/modules/path/path.module
Menu callback; confirms deleting an URL alias
path_admin_edit in drupal/modules/path/path.module
Menu callback; handles pages for creating and editing URL aliases.

Code

drupal/modules/path/path.module, line 323

<?php
function path_load($pid) {
  return db_fetch_array(db_query('SELECT * FROM {url_alias} WHERE pid = %d', $pid));
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.