function admin_content_notification_node_insert in Admin Content Notification 8.3
Same name and namespace in other branches
- 8 admin_content_notification.module \admin_content_notification_node_insert()
- 8.2 admin_content_notification.module \admin_content_notification_node_insert()
- 7.2 admin_content_notification.module \admin_content_notification_node_insert()
- 7 admin_content_notification.module \admin_content_notification_node_insert()
Implements hook_node_insert().
File
- ./
admin_content_notification.module, line 27 - Module File, consist all related hooks.
Code
function admin_content_notification_node_insert(EntityInterface $node) {
if (\Drupal::service('admin_content_notification.common')
->isCurrentUserRoleAllowedToSendNotification()) {
\Drupal::service('admin_content_notification.common')
->sendMail($node, TRUE);
}
}