function core_watchdog_message_types

6.x watchdog.drush.inc core_watchdog_message_types()
3.x watchdog.drush.inc core_watchdog_message_types()
4.x watchdog.drush.inc core_watchdog_message_types()
5.x watchdog.drush.inc core_watchdog_message_types()

Helper function to obtain the message types based on drupal version.

Return value

Array of watchdog message types.

2 calls to core_watchdog_message_types()
core_watchdog_query in commands/core/watchdog.drush.inc
Build a WHERE snippet based on given parameters.
drush_core_watchdog_list in commands/core/watchdog.drush.inc
Command callback.

File

commands/core/watchdog.drush.inc, line 367

Code

function core_watchdog_message_types() {
  if (drush_drupal_major_version() == 5) {
    return _watchdog_get_message_types();
  }
  else {
    return _dblog_get_message_types();
  }
}