You are here

function hook_feedback_load in Feedback 7.2

Act on an array of feedback entry objects when loaded from the database.

Parameters

$entries: An array of feedback entry objects, indexed by fid.

File

./feedback.api.php, line 19
Hooks provided by the Feedback module.

Code

function hook_feedback_load($entries) {
  $result = db_query('SELECT * FROM {my_table} WHERE fid IN (:fids)', array(
    ':fids' => array_keys($entries),
  ));
  foreach ($result as $record) {
    $entries[$record->fid]->foo = $result->foo;
  }
}