Software Programming
Creating Drupal Module
Submitted by bishop__ on Sat, 02/27/2010 - 11:02
Related Terms :
-
Here is a sample Drupal module that will enable us to add and display Student Information.
- Create the
student.infofile - Create the
student.installfile
; $Id$ name = Student Module description = A sample Drupal module. core = 6.x
<?php
// $Id$
/**
* Implementation of hook_schema()
*/
function student_schema()
{
$schema['student_info'] = array(
'description' => 'Student Information',
'fields' => array(
'id' => array(
'description' => 'The primary identifier for student_info.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE),
'student_id' => array(
'description' => 'Student ID Number',
'type' => 'varchar',

Recent comments
6 days 22 hours ago
1 week 16 hours ago
5 weeks 1 day ago
5 weeks 2 days ago
5 weeks 2 days ago
5 weeks 2 days ago
5 weeks 3 days ago
5 weeks 4 days ago
5 weeks 4 days ago
6 weeks 4 days ago