You are here

view_unpublished.install in view_unpublished 7

view_unpublished.install Contains install and update functions for view_unpublished.

File

view_unpublished.install
View source
<?php

/**
 * @file view_unpublished.install
 * Contains install and update functions for view_unpublished.
 */

/**
 * Implements hook_enable().
 */
function view_unpublished_enable() {
  node_access_needs_rebuild(TRUE);
}

/**
 * Implements hook_disable().
 */
function view_unpublished_disable() {
  node_access_needs_rebuild(TRUE);
}

/**
 * Enable notice to rebuild node access permissions since a new node access realm
 * was added to respect the core "view own unpublished content" permission
 * See https://drupal.org/node/1762904
 */
function view_unpublished_update_7100() {
  node_access_needs_rebuild(TRUE);
}

Functions

Namesort descending Description
view_unpublished_disable Implements hook_disable().
view_unpublished_enable Implements hook_enable().
view_unpublished_update_7100 Enable notice to rebuild node access permissions since a new node access realm was added to respect the core "view own unpublished content" permission See https://drupal.org/node/1762904