You are here

ack_node.install in Access Control Kit 7

Install, update, and uninstall functions for the ACK node module.

File

ack_node/ack_node.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the ACK node module.
 */

/**
 * API change for ACK handlers and permissions.
 */
function ack_node_update_7100() {

  // Update handler names.
  db_update('access_handler')
    ->fields(array(
    'handler' => 'ACKEntityField',
  ))
    ->condition('handler', 'ACKNodeList')
    ->execute();
  db_update('access_handler')
    ->fields(array(
    'handler' => 'ACKEntityTaxonomyTermReference',
  ))
    ->condition('handler', 'ACKNodeTaxonomyTermReference')
    ->execute();
  drupal_flush_all_caches();
  return t('<strong>Important note for users of ack_node 7.x-1.x-dev releases from before May 20, 2013</strong>: The method of assigning scope-limited permissions to roles has changed. ACK now provides its own permissions for working with nodes, rather than overriding the core create/edit/delete permissions. Please update your permissions configuration accordingly. More information is available in the <a href="@url">ack_node README</a> file.', array(
    '@url' => url(drupal_get_path('module', 'ack_node') . '/README.txt'),
  ));
}

Functions

Namesort descending Description
ack_node_update_7100 API change for ACK handlers and permissions.