Quantcast
Channel: Preserved Thoughts - PHP
Viewing all articles
Browse latest Browse all 2

Creating Drupal Module

$
0
0
    Here is a sample Drupal module that will enable us to add and display Student Information.
  1. Create the student.info file
  2. ; $Id$
    name = Student Module
    description = A sample Drupal module.
    core = 6.x
    

  3. Create the student.install file
  4. <?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

read more


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images