You are here

function mailing_list_load in Mailing List 6

Same name and namespace in other branches
  1. 7 mailing_list.module \mailing_list_load()

Return the mailing list object matching a mailing list ID.

Parameters

$mlid: The mailing list's ID.

Return value

The mailing list object, if exists, FALSE otherwise.

1 call to mailing_list_load()
mailing_list_block in ./mailing_list.module
Implementation of hook_block().

File

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

Code

function mailing_list_load($mlid) {
  $query = "SELECT * FROM {mailing_list} WHERE mlid = %d";
  $return = db_fetch_object(db_query($query, $mlid));
  return $return;
}