You are here

function admin_content_notification_node_insert in Admin Content Notification 8.2

Same name and namespace in other branches
  1. 8.3 admin_content_notification.module \admin_content_notification_node_insert()
  2. 8 admin_content_notification.module \admin_content_notification_node_insert()
  3. 7.2 admin_content_notification.module \admin_content_notification_node_insert()
  4. 7 admin_content_notification.module \admin_content_notification_node_insert()

Implements hook_node_insert().

File

./admin_content_notification.module, line 28
Module File, consist all related hooks.

Code

function admin_content_notification_node_insert(EntityInterface $node) {
  if (admin_content_notification_is_current_user_role_allowed_to_send_notification()) {
    admin_content_notification_send_email($node, TRUE);
  }
}