You are here

coder.module in Coder 7

Installation file for the coder module.

File

coder.module
View source
<?php

/**
 * @file
 * Installation file for the coder module.
 */

/**
 * Implements hook_menu().
 */
function coder_menu() {
  $items['admin/config/development/coder'] = array(
    'title' => 'Coder',
    'description' => 'Select code review plugins and modules, and upgrade files.',
    'page callback' => 'coder_display_required_module_message',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}

/**
 * Returns form items for the required module message.
 */
function coder_display_required_module_message() {
  $message = t('Please enable one or both of the "Coder Review" or "Coder Upgrade" modules.');
  $build['coder_message']['#markup'] = $message;
  return $build;
}

Functions

Namesort descending Description
coder_display_required_module_message Returns form items for the required module message.
coder_menu Implements hook_menu().