You are here

function alinks_get_strings in Alinks 7

Same name and namespace in other branches
  1. 6 alinks.module \alinks_get_strings()

Get the strings we have to replace from the database

1 call to alinks_get_strings()
alinks_node_view in ./alinks.module
Implementation of hook_node_view().

File

./alinks.module, line 145
this module allows users to associates defined text to links

Code

function alinks_get_strings() {
  $alink = array();
  $result = db_query("SELECT * FROM {alinks} ORDER BY alink_weight");
  if ($result
    ->rowCount() > 0) {
    foreach ($result as $alinks) {
      $alink[$alinks->id] = $alinks;
    }
  }
  return $alink;
}