You are here

function photos_access_node_insert in Album Photos 8.4

Same name and namespace in other branches
  1. 8.5 photos_access/photos_access.module \photos_access_node_insert()
  2. 7.3 photos_access/photos_access.module \photos_access_node_insert()
  3. 6.0.x photos_access/photos_access.module \photos_access_node_insert()

Implements hook_ENTITY_TYPE_insert().

File

photos_access/photos_access.module, line 326
Implementation of photos_access.module.

Code

function photos_access_node_insert(NodeInterface $node) {
  if (\Drupal::config('photos.settings')
    ->get('photos_access_' . $node
    ->getType())) {
    photos_access_update_access($node, $node->privacy);
  }
}