Declaring New Entity for Events– GSoC – week #4

For save events creating by user we need a mechanism. Since last week, creating table in database was taken place. To save those event, new entity type declared. Declaring new entity type is have following files in module.

.info
.install
.module
.controller
.admin

as usual, “.info ” file have introduction in module to core Drupal.
“.install” create database table by executing schema. It use “hook_schema()” function. 
“.module” file create form and menu links for navigation. 
“.controller”  help to declare controlling part of entity. Adding new values of entity, updating them or deleting  part action are code in it.

Through out the week, coding entity was taken place.  

Advertisements

Design Database Tables – GSoC – week #2

After use view calendar, next phase is creating tables for events and schedules, and fetch those data to calendar.

For that, we need to create new entity type and use them with new content. New content must be able to specify the groups, data, time for schedule.
That was the initial plan for week. But unfortunately it couldn’t accomplish within this week.
Wish to accomplish that within next week.