You are here

function ad_notify_adowners in Advertisement 5.2

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

Adowners _hook().

File

notify/ad_notify.module, line 594
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;
  }
}