I'm trying to convert my Tetris module to work in Drupal 7. The game is a block and when I view my blocks on
'admin/structure/block'
my Tetris block isnt visible in Drupal 7. I have converted the function 'tetris_block' to 'tetris_block_info' and 'tetris_block_view' and I'm not sure what I'm doing wrong.
This is the code so far for tetris.module converting it to Drupal 7 from Drupal 6:
<?php
// $Id: tetris.module,v 1.12 2009/03/03 11:37:56 skinhat Exp $
/*
* Drupal Module: tetris
*
* @author: Glenn Linde
*/
function tetris_menu() {
$items = array();
$items['admin/config/tetris'] = array(
'title' => t('Tetris Configuration'),
'description' => t('Configure the game.'),
'page callback' => 'drupal_get_form',
'page arguments' => array('tetris_admin_settings'),
'access arguments' => array('administer site configuration'),
'type' => MENU_NORMAL_ITEM,// optional
);
$items['tetris/win'] = array(
'title' => '',
'page callback' => 'tetris_win',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'access' => TRUE
);
return $items;
}
/**
* Display help and module information
* @param section which section of the site we're displaying help
* @return help text for section
*/
function tetris_help($path,$arg) {