You are here

function contentoptimizer_get_keyword in Content Optimizer 8

Same name and namespace in other branches
  1. 6.2 contentoptimizer.module \contentoptimizer_get_keyword()
  2. 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 462
Analyzes content for search engine optimization recommendations

Code

function contentoptimizer_get_keyword($aid) {
  $query = db_select('contentoptimizer', 'co')
    ->fields('co', array(
    'keyword',
  ))
    ->condition('aid', $aid);
  return $query
    ->execute()
    ->fetchField();
}