You are here

function _nodewords_get_tags_data in Nodewords: D6 Meta Tags 6.3

Same name and namespace in other branches
  1. 6.2 nodewords.module \_nodewords_get_tags_data()
1 call to _nodewords_get_tags_data()
nodewords_save_tags in ./nodewords.module
Update or insert tags in the table.

File

./nodewords.module, line 922
Implement an version that other modules can use to add meta tags.

Code

function _nodewords_get_tags_data($name, array $options) {
  return db_fetch_object(db_query_range("SELECT * FROM {nodewords} WHERE type = %d AND id = '%s' AND sid = %d AND name = '%s' AND language = '%s'", $options['type'], $options['id'], $options['sid'], $name, $options['language'], 0, 1));
}