You are here

function _ed_classified_notify_user_of_ad_expiration in Classified Ads 7.2

Same name and namespace in other branches
  1. 5.2 ed_classified_notifications.inc \_ed_classified_notify_user_of_ad_expiration()
  2. 5 ed_classified_notifications.inc \_ed_classified_notify_user_of_ad_expiration()
  3. 6.2 ed_classified_notifications.inc \_ed_classified_notify_user_of_ad_expiration()

Notify a user that their ad has expired.

Parameters

$node The ad node.: This function sends a note to the user regarding their expired ad.

1 call to _ed_classified_notify_user_of_ad_expiration()
_ed_classified_expire_ads in ./ed_classified_utils.inc
expire old ads

File

./ed_classified_notifications.inc, line 72
user notifications for imple text-based classified ads module Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights Reserved.…

Code

function _ed_classified_notify_user_of_ad_expiration($node) {
  $ad_author = user_load(array(
    'uid' => $node->uid,
  ));
  _ed_classified_send_user_notification_email($ad_author, 'expired');
}