You are here

function mailing_list_email_load in Mailing List 6

Same name and namespace in other branches
  1. 7 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 209
Minimalistic mailing list module.

Code

function mailing_list_email_load($eid) {
  $query = "SELECT * FROM {mailing_list_emails} WHERE eid = %d";
  $return = db_fetch_object(db_query($query, $eid));
  return $return;
}