function _mail_logger_get_mailkey_types in Mail Logger 6
Same name and namespace in other branches
- 5 mail_logger.module \_mail_logger_get_mailkey_types()
- 7 mail_logger.module \_mail_logger_get_mailkey_types()
Returns types of mailkeys in mail_logger table
2 calls to _mail_logger_get_mailkey_types()
- mail_logger_form_overview in ./
mail_logger.module - mail_logger_rules_condition_mailkey_form in ./
mail_logger.rules.inc - Action drupal message configuration form.
File
- ./
mail_logger.module, line 122 - 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');
while ($object = db_fetch_object($result)) {
$types[] = $object->mailkey;
}
return $types;
}