You are here

function block_inject_get_exceptions in Block Inject 7

Retrieves from the database the existing exceptions from injection.

Returns an array of node objects ordered by node ID

1 call to block_inject_get_exceptions()
block_inject_exceptions_list in ./block_inject.admin.inc
Callback for the Block Inject Exceptions page.

File

./block_inject.module, line 788
The Block Inject module functions.

Code

function block_inject_get_exceptions() {
  $select = db_select('block_inject_exceptions', 'bie')
    ->fields('bie', array(
    'nid',
    'bi_id',
  ))
    ->orderBy('nid', 'ASC')
    ->execute();
  $nids_object = $select
    ->fetchAll();
  return $nids_object;
}