You are here

js.module in JS Callback Handler 7

Same filename and directory in other branches
  1. 8.3 js.module
  2. 5.2 js.module
  3. 6 js.module
  4. 7.2 js.module

JavaScript callback handler module.

File

js.module
View source
<?php

/**
 * @file
 * JavaScript callback handler module.
 */

/**
 * Implements hook_menu().
 */
function js_menu() {
  $items = array();
  $items['admin/config/system/js'] = array(
    'title' => 'JS Callback handler',
    'description' => 'Configure JavaScript callback handler.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'js_configure_form',
    ),
    'access arguments' => array(
      'administer js',
    ),
    'file' => 'js.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}

/**
 * Implements hook_permission().
 */
function js_permission() {
  return array(
    'administer js' => array(
      'title' => t('Administer JavaScript callback handler settings'),
    ),
  );
}

Functions

Namesort descending Description
js_menu Implements hook_menu().
js_permission Implements hook_permission().