function contentanalysis_get_aid_by_nid in Content Analysis 6
Same name and namespace in other branches
- 8 contentanalysis.module \contentanalysis_get_aid_by_nid()
- 7 contentanalysis.module \contentanalysis_get_aid_by_nid()
Returns the aid for a given node id
Parameters
$nid: node id for the node of the analysis
Return value
aid
File
- ./
contentanalysis.module, line 1554
Code
function contentanalysis_get_aid_by_nid($nid) {
$sql = '
SELECT aid
FROM {contentanalysis}
WHERE nid = %d
';
return db_result(db_query($sql, $nid));
}