function PathTestCase::getPID

Returns the path ID.

Parameters

$alias: A string containing an aliased path.

Return value

int Integer representing the path ID.

2 calls to PathTestCase::getPID()
PathTestCase::testAdminAlias in drupal-7.x/modules/path/path.test
Tests alias functionality through the admin interfaces.
PathTestCase::testAdminAlias in drupal-7.x/modules/path/path.test
Tests alias functionality through the admin interfaces.

Archivo

drupal-7.x/modules/path/path.test, line 174
Tests for the Path module.

Class

PathTestCase
Provides a base class for testing the Path module.

Código

function getPID($alias) {
  return db_query("SELECT pid FROM {url_alias} WHERE alias = :alias", array(':alias' => $alias))->fetchField();
}