function _nodewords_load in Nodewords: D6 Meta Tags 5
Load tags from table
4 calls to _nodewords_load()
- nodewords_form_alter in ./
nodewords.module - Implementation of hook_form_alter().
- nodewords_frontpage_form in ./
nodewords.module - Menu callback: front page settings form.
- nodewords_get in ./
nodewords.module - Get the defined meta tags for $type / $id.
- nodewords_nodeapi in ./
nodewords.module - Implementation of hook_nodeapi().
File
- ./
nodewords.module, line 652 - Assign META tags to nodes, vocabularies, terms and pages.
Code
function _nodewords_load($type, $id) {
$tags = array();
$result = db_query("SELECT * FROM {nodewords} WHERE type = '%s' AND id = '%s'", $type, $id);
while ($row = db_fetch_object($result)) {
$tags[$row->name] = $row->content;
}
return $tags;
}