You are here

tools.module in Tools 7

File

tools.module
View source
<?php

/**
 * Implements hook_menu().
 */
function tools_menu() {
  $items = array();
  $items['admin/structure/tools'] = array(
    'title' => 'Tools',
    'description' => 'Manage tools.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tools_admin_form',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'tools.admin.inc',
    'access arguments' => array(
      'access tools',
    ),
  );
  return $items;
}

/**
 * Implements hook_permission().
 */
function tools_permission() {
  return array(
    'access tools' => array(
      'title' => t('Access tools'),
      'description' => t('Access tools interface.'),
    ),
  );
}

Functions

Namesort descending Description
tools_menu Implements hook_menu().
tools_permission Implements hook_permission().