The objective of this module was to programmatically create a database of Metsi employees, their respective departments and the location of the departments. Metsi has sixteen employees in four departments located in two buildings in the Ottawa, Canada region. The departments are software development, new software testing, IT Education, and software promotion.
There are two tables in the database that were created programmatically using hook schema: employee name and department, and department name and location.
The names of the employees were then outputted to a table with 8 employees per page with the option to go to the next page.
The following screenshot shows the table of Metsi employees with a table header and a pager.
New fields and data were added to the tables as updates using Drush.
No comments:
Post a Comment