function contentoptimizer_get_keyword in Content Optimizer 6.2
Same name and namespace in other branches
- 8 contentoptimizer.module \contentoptimizer_get_keyword()
- 7.2 contentoptimizer.module \contentoptimizer_get_keyword()
Fetches the node keywords from the database
Parameters
int $aid: analysis id the keyword is associated with
Return value
str keyword
1 call to contentoptimizer_get_keyword()
- contentoptimizer_analyzer in ./
contentoptimizer.module - Implementation of hook_contentanalysis_analyzer() via custom define callback
File
- ./
contentoptimizer.module, line 95 - Analyzes content for search engine optimization recommendations
Code
function contentoptimizer_get_keyword($aid) {
$sql = '
SELECT keyword
FROM {contentoptimizer}
WHERE aid = %d
';
return db_result(db_query($sql, $aid));
}