function simplenews_call_actions in Simplenews 6.2
Same name and namespace in other branches
- 6 simplenews.module \simplenews_call_actions()
Call simplenews actions.
2 calls to simplenews_call_actions()
- simplenews_subscribe_user in ./
simplenews.module - Subscribe a user to a newsletter or send a confirmation mail.
- simplenews_unsubscribe_user in ./
simplenews.module - Unsubscribe a user from a newsletter or send a confirmation mail.
File
- ./
simplenews.module, line 1966 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_call_actions($op, $subscription) {
// Only call actions when the simplenews_action module is enabled.
if (!module_exists('simplenews_action')) {
return;
}
$aids = _trigger_get_hook_aids('simplenews', $op);
$context = array(
'hook' => 'simplenews',
'op' => $op,
'account' => $subscription,
);
foreach ($aids as $aid => $action_info) {
actions_do($aid, $subscription, $context);
}
}