function alinks_get_strings in Alinks 6
Same name and namespace in other branches
- 7 alinks.module \alinks_get_strings()
Get the strings we have to replace from the database
1 call to alinks_get_strings()
- alinks_nodeapi in ./
alinks.module - Implementation of hook_nodeapi().
File
- ./
alinks.module, line 137
Code
function alinks_get_strings() {
$sql = db_query("SELECT * FROM {alinks} ORDER BY alink_weight");
if (count(db_fetch_array($sql)) > 0) {
$sql = db_query("SELECT * FROM {alinks} ORDER BY alink_weight");
$alink = array();
while ($alinks = db_fetch_array($sql)) {
$alink[$alinks['id']] = $alinks;
}
}
return $alink;
}