You are here

function notifications_digest_notifications in Notifications 6.3

Same name and namespace in other branches
  1. 6.4 notifications_digest/notifications_digest.module \notifications_digest_notifications()

Implementation of hook_notifications()

File

notifications_digest/notifications_digest.module, line 16
Notifications message digest

Code

function notifications_digest_notifications($op, &$arg0, $arg1 = NULL, $arg2 = NULL) {
  switch ($op) {
    case 'build methods':

      // Return array of digesting engines
      $info['short'] = array(
        'type' => 'short',
        'name' => t('Short digest'),
        'description' => t('Produces one line per event, grouped by object'),
        'build callback' => 'notifications_digest_build_short',
        'digest' => TRUE,
      );
      $info['long'] = array(
        'type' => 'long',
        'name' => t('Long digest'),
        'description' => t('Adds full information for each event'),
        'build callback' => 'notifications_digest_build_long',
        'digest' => TRUE,
      );
      return $info;
  }
}