You are here

function mailing_list_email_load in Mailing List 7

Same name and namespace in other branches
  1. 6 mailing_list.module \mailing_list_email_load()

Return the mailing list e-mail object matching an e-mail ID.

Parameters

$eid: The e-mail's ID.

Return value

The mailing list e-mail object, if exists, FALSE otherwise.

File

./mailing_list.module, line 292
Minimalistic mailing list module.

Code

function mailing_list_email_load($eid) {
  return db_select('mailing_list_emails', 'mle')
    ->fields('mle')
    ->condition('eid', $eid)
    ->execute()
    ->fetch();
}