You are here

function smtp_selection_criteria_load in SMTP Authentication Support 7.2

Loads a criteria by its identifier.

Return value

Associative array with selection criterias' properties. Returns FALSE if selection criteria does not exist.

File

./smtp.module, line 370
Enables Drupal to send e-mail directly to an SMTP server.

Code

function smtp_selection_criteria_load($cid) {
  $result = db_select('smtp_selection_criteria', 'c')
    ->fields('c')
    ->condition('cid', $cid)
    ->execute();
  return $result
    ->fetchAssoc();
}