All pastes #635244 Raw Edit

Miscellany

public text v1 · immutable
#635244 ·published 2007-07-26 22:56 UTC
rendered paste body
<?php
// $Id$

/**
 * @file
 * Lets users add private annotations to nodes.
 *
 * Adds a text field when a node is displayed
 * so that authenticated users may make notes.
 */


/**
 * Implementation of hook_menu().
 */
function annotate_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/annotate',
      'title' => t('Annotation settings'),
      'description' => t('Change how annotations behave'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array('annotate_admin_settings'),
      'access' -> user_access('administer site configuration')
    );
  }
  return $items;
}