You are here

function notifications_digest_notifications in Notifications 6.4

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

Implementation of hook_notifications()

File

notifications_digest/notifications_digest.module, line 11
Notifications digest module

Code

function notifications_digest_notifications($op) {
  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;
  }
}