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.
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.