You are here

function mail_logger_views_handlers in Mail Logger 6

Implementation of hook_views_handlers().

File

views/mail_logger.views.inc, line 10
Contains implementations of Views hooks.

Code

function mail_logger_views_handlers() {
  $handlers = array(
    'info' => array(
      'path' => drupal_get_path('module', 'mail_logger') . '/views/handlers',
    ),
  );

  // We piggyback onto the field handler Views provides for Locale module,
  // as it does everything we need.
  // However, to avoid adding a dependency on Locale, we need to tell Views
  // about its location if the module is not enabled.
  if (!module_exists('locale')) {
    $handlers['handlers'] = array(
      'views_handler_field_locale_language' => array(
        'parent' => 'views_handler_field',
        'path' => drupal_get_path('module', 'views') . '/modules/locale',
      ),
    );
  }
  $handlers['handlers']['mail_logger_handler_field_mail'] = array(
    'parent' => 'views_handler_field',
  );
  $handlers['handlers']['mail_logger_handler_field_mail_logger_entry'] = array(
    'parent' => 'views_handler_field',
  );
  return $handlers;
}