You are here

function tca_node_node_update in Token Content Access 7

Implements hook_node_update().

File

tca_node/tca_node.module, line 132
Main module file for Token Content Access nodes module.

Code

function tca_node_node_update($node) {
  if (tca_get_active_entity('node', $node)) {
    if (user_access('administer tca_node')) {
      $token_url = url('node/' . $node->nid, array(
        'absolute' => TRUE,
        'query' => array(
          'tca' => $node->tca_token,
        ),
      ));
      drupal_set_message(t('URL to bypass Token Access Control for this item: @token', array(
        '@token' => $token_url,
      )));
    }
  }
}