You are here

protected function AccessFilterTestCase::loadFilterByName in Access Filter 7

Load an access filter by name.

Parameters

string $name: A string of name.

Return value

object An object of access filter.

1 call to AccessFilterTestCase::loadFilterByName()
AccessFilterTestCase::testOperations in ./access_filter.test
Test standard operations.

File

./access_filter.test, line 82
Tests for access_filter.module

Class

AccessFilterTestCase
@file Tests for access_filter.module

Code

protected function loadFilterByName($name) {
  return db_query('SELECT * FROM {access_filter} WHERE name = :name', array(
    ':name' => $name,
  ))
    ->fetchObject();
}