function _nodewords_get_custom_pages_data in Nodewords: D6 Meta Tags 6
Load the page meta tags data from the cache.
Parameters
$id: The ID of the page to load; by default the function loads all the custom pages data.
2 calls to _nodewords_get_custom_pages_data()
- nodewords_custom_pages_overview in ./
nodewords.admin.inc - Return the list of pages with custom meta tags settings.
- nodewords_page_load in ./
nodewords.module - This function is used from the menu system when a menu callback path contains %nodewords_page_load.
File
- ./
nodewords.module, line 1360 - Implement an API that other modules can use to implement meta tags.
Code
function _nodewords_get_custom_pages_data($id = NULL) {
static $pages;
if (!isset($pages)) {
$pages = array();
$result = db_query("SELECT * FROM {nodewords_custom} ORDER BY weight ASC");
while ($page = db_fetch_object($result)) {
$page->tags = nodewords_load_tags(NODEWORDS_TYPE_PAGE, $page->pid);
$pages[$page->pid] = $page;
}
}
return isset($id) ? isset($pages[$id]) ? $pages[$id] : FALSE : $pages;
}