Back to Drupal exercises for the in-class training
Exercise on Drupal Database API Basics
Areas covered
- Build a module
- Database API
- Creating tables
- Update columns
Question
Create a Drupal instance.
Create a form to insert the mark list of a class room, which includes student name, subject and mark scored for each subject.
Create the database table with needed columns using code. Once the table is created, add one more column 'status' to the above table.
Fetch all the marks in a list with following details
* Student name
* Subject
* Mark scored
* Status (Absent, if the student didn't attend the exam)
* There should be a filter with Student name and subject