function mail_logger_read_mail in Mail Logger 5
Same name and namespace in other branches
- 6 mail_logger.module \mail_logger_read_mail()
- 7 mail_logger.pages.inc \mail_logger_read_mail()
1 string reference to 'mail_logger_read_mail'
- mail_logger_menu in ./
mail_logger.module - Implementation of hook_menu().
File
- ./
mail_logger.module, line 36
Code
function mail_logger_read_mail($id) {
if (!isset($id) || !is_numeric($id)) {
return 'Invalid Mail Logger ID parameter';
}
else {
if ($result = db_query('SELECT * FROM {mail_logger} WHERE mlid = %d', $id)) {
drupal_add_css(drupal_get_path('module', 'mail_logger') . '/mail_logger.css');
return theme('mail_logger_read_mail', db_fetch_object($result));
}
else {
return 'No Mail Logger record found with id ' . $id;
}
}
}