simplenews.api.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * @file
  4. * Hooks provided by the Simplenews module.
  5. */
  6. /**
  7. * @todo
  8. */
  9. function hook_simplenews_issue_operations() {
  10. }
  11. /**
  12. * @todo
  13. */
  14. function hook_simplenews_subscription_operations() {
  15. }
  16. /**
  17. * @todo
  18. */
  19. function hook_simplenews_category_insert($category) {
  20. }
  21. /**
  22. * @todo
  23. */
  24. function hook_simplenews_category_update($category) {
  25. }
  26. /**
  27. * @todo
  28. */
  29. function hook_simplenews_category_delete($category) {
  30. }
  31. /**
  32. * @todo
  33. */
  34. function hook_simplenews_mailing_list_insert($list) {
  35. }
  36. /**
  37. * @todo
  38. */
  39. function hook_simplenews_subscriber_update($subscriber) {
  40. }
  41. /**
  42. * @todo
  43. */
  44. function hook_simplenews_subscriber_insert($subscriber) {
  45. }
  46. /**
  47. * @todo
  48. */
  49. function hook_simplenews_subscriber_delete($subscriber) {
  50. }
  51. /**
  52. * Invoked if a user is subscribed to a newsletter.
  53. *
  54. * @param $subscriber
  55. * The subscriber object including all subscriptions of this user.
  56. *
  57. * @param $subscription
  58. * The subscription object for this specific subscribe action.
  59. */
  60. function hook_simplenews_subscribe_user($subscriber, $subscription) {
  61. }
  62. /**
  63. * Invoked if a user is unsubscribed from a newsletter.
  64. *
  65. * @param $subscriber
  66. * The subscriber object including all subscriptions of this user.
  67. *
  68. * @param $subscription
  69. * The subscription object for this specific unsubscribe action.
  70. */
  71. function hook_simplenews_unsubscribe_user($subscriber, $subscription) {
  72. }