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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s