You are here

function _nodewords_get_pages_paths in Nodewords: D6 Meta Tags 6

Answer a listing of page paths, stored in a static cache.

1 call to _nodewords_get_pages_paths()
_nodewords_detect_type_and_id in ./nodewords.module
Try to guess the $type and $id by looking at $_GET['q'].

File

./nodewords.module, line 1379
Implement an API that other modules can use to implement meta tags.

Code

function _nodewords_get_pages_paths() {
  static $paths;
  if (!isset($paths)) {
    $paths = array();
    $result = db_query("SELECT pid, path FROM {nodewords_custom} ORDER BY weight ASC");
    while ($page = db_fetch_object($result)) {
      $paths[$page->pid] = $page->path;
    }
  }
  return $paths;
}