function simplenews_subscriber_delete in Simplenews 7.2
Same name and namespace in other branches
- 7 simplenews.module \simplenews_subscriber_delete()
Delete subscriber and corresponding subscriptions from the database.
Parameters
$snid: Simplenews subscriber id.
Related topics
3 calls to simplenews_subscriber_delete()
- SimplenewsSourceTestCase::testSendMissingSubscriber in tests/
simplenews.test - Test with disabled caching.
- simplenews_rules_action_subscriber_delete in simplenews_rules/
simplenews_rules.rules.inc - Action Implementation: Delete an email address from all Simplenews newsletters
- simplenews_user_delete in ./
simplenews.module - Implements hook_user_delete().
File
- ./
simplenews.module, line 1840 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_subscriber_delete($snid) {
entity_delete('simplenews_subscriber', $snid);
}