| 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 |
| 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; |
| 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; |