You are here

function ad_notify_adowners in Advertisement 6

Same name and namespace in other branches
  1. 5.2 notify/ad_notify.module \ad_notify_adowners()
  2. 5 notify/ad_notify.module \ad_notify_adowners()

Implementation of hook_adowners().

File

notify/ad_notify.module, line 605
Receive email notifications regarding ads.

Code

function ad_notify_adowners($op, $arg1 = NULL, $arg2 = NULL) {
  switch ($op) {
    case 'overview':
      return l(t('notifications'), 'node/' . $arg1 . '/adowners/' . $arg2 . '/notifications');
    case 'delete':
      if ($arg1) {
        db_query('DELETE FROM {ad_notify} WHERE oid = %d', $arg1);
      }
      break;
  }
}