function _nodewords_get_tags_data_query in Nodewords: D6 Meta Tags 6.3
1 call to _nodewords_get_tags_data_query()
- nodewords_load_tags in ./
nodewords.module - Load tags from table.
File
- ./
nodewords.module, line 931 - Implement an version that other modules can use to add meta tags.
Code
function _nodewords_get_tags_data_query(array $options) {
$exists = db_result(db_query_range("SELECT 1 FROM {nodewords} WHERE type = %d AND id = '%s' AND sid = %d AND language = '%s'", $options['type'], $options['id'], $options['sid'], $options['language'], 0, 1));
if (!$exists) {
$options['language'] = '';
}
$result = db_query("SELECT * FROM {nodewords} WHERE type = %d AND id = '%s' AND sid = %d AND language = '%s'", $options['type'], $options['id'], $options['sid'], $options['language']);
return $result;
}