You are here

function og_access_enable in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og_access.install \og_access_enable()
  2. 5.3 og_access.install \og_access_enable()
  3. 5.7 og_access.install \og_access_enable()

Implementation of hook_enable().

A node access module needs to force a rebuild of the node access table when it is enabled to ensure that things are set up.

File

./og_access.install, line 18

Code

function og_access_enable() {
  node_access_rebuild();
  drupal_set_message(t('The node access table has been rebuilt.'));
}