-
Here is a sample Drupal module that will enable us to add and display Student Information.
- Create the
student.info
file - Create the
student.install
file
; $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',
No Comments |