You are here

function _mail_logger_get_mailkey_types in Mail Logger 7

Same name and namespace in other branches
  1. 5 mail_logger.module \_mail_logger_get_mailkey_types()
  2. 6 mail_logger.module \_mail_logger_get_mailkey_types()

Returns types of mailkeys in mail_logger table

1 call to _mail_logger_get_mailkey_types()
mail_logger_form_overview in ./mail_logger.pages.inc
Form to filter the list of logged emails.

File

./mail_logger.module, line 161
Mail Logger module logs all outgoing mail that passes through the drupal_mail function.

Code

function _mail_logger_get_mailkey_types() {
  $types = array();
  $result = db_query('SELECT DISTINCT(mailkey) FROM {mail_logger} ORDER BY mailkey');
  foreach ($result as $object) {
    $types[] = $object->mailkey;
  }
  return $types;
}