/[drupal]/contributions/modules/randomizer/randomizer.module
ViewVC logotype

Diff of /contributions/modules/randomizer/randomizer.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6, Fri Jan 4 20:27:39 2008 UTC revision 1.7, Wed Feb 13 15:45:32 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: randomizer.module,v 1.5 2007/03/06 21:20:21 deekayen Exp $  // $Id: randomizer.module,v 1.6 2008/01/04 20:27:39 deekayen Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 20  define('RANDOMIZER_MAX_PER_SET', 500); Line 20  define('RANDOMIZER_MAX_PER_SET', 500);
20   * @param string   * @param string
21   * @return string   * @return string
22   */   */
23  function randomizer_help($section = 'admin/help#randomizer') {  function randomizer_help($path, $arg) {
24    switch ($section) {    switch ($path) {
25      case 'admin/help#randomizer':      case 'admin/help#randomizer':
26        return t('<p>This module is designed to assist researchers and students who want an easy way to perform random sampling or assign participants to experimental conditions.</p>');        return t('<p>This module is designed to assist researchers and students who want an easy way to perform random sampling or assign participants to experimental conditions.</p>');
27        break;        break;
# Line 38  function randomizer_help($section = 'adm Line 38  function randomizer_help($section = 'adm
38   * Implementation of hook_block().   * Implementation of hook_block().
39   */   */
40  function randomizer_block($op = 'list', $delta = 0, $edit = array()) {  function randomizer_block($op = 'list', $delta = 0, $edit = array()) {
41    switch($op) {    switch ($op) {
42    case 'list':    case 'list':
43      $blocks[0]['info'] = 'Random number';      $blocks[0]['info'] = 'Random number';
44      return $blocks;      return $blocks;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2