You are here

function closeblock_db_load in Close Block 7

Load the saved information from the db.

1 call to closeblock_db_load()
closeblock_closing_info_get in includes/closeblock.api.inc
Get info.

File

model/closeblock.db.inc, line 11
DB model functions.

Code

function closeblock_db_load($params) {
  $query = db_select('closeblock', 'closeblock')
    ->fields('closeblock');
  foreach ($params as $param => $value) {
    $query
      ->condition($param, $value, '=');
  }
  $result = $query
    ->execute();
  $result = $result
    ->fetchAll();
  return $result;
}