drupal module development : blisstering @ dcsf
DESCRIPTION
TRANSCRIPT
Drupal Module Development“Hands-on”
Anil SagarGaurav Kumar
Blisstering Solutions
Drupal Architecture
Technology Stack L(/W)AMPCode Base (Drupal 6.16)
Database
Module Architecture
Core ModulesContributed Modules
Custom Modules
Module Architecture “The building blocks of a module”
The .info file The .install file The .module file The .inc file
Hooks
What are hooks?Why should I care?
hook_menu
Define menu items and page callbacks.
http://api.drupal.org/api/function/hook_menu
The Schema APIhttp://api.drupal.org/api/group/schemaapi/6
hook_schemahook_install
The FORM API
hook_formForm API elements
Form SubmitForm Validate
drupal_set_messagedrupal_set_error
The Module’s Block
hook_blockhttp://api.drupal.org/api/function/hook_block/6
Modify an existing form
hook_form_alterhttp://api.drupal.org/api/function/hook_form_alter
Permissions, Access Control
hook_permhttp://api.drupal.org/api/function/hook_perm
Node operations “The king of all hooks”
hook_nodeapihttp://api.drupal.org/api/function/hook_nodeapi/5
Bonus Topic
EcpliseCoder
XdebugFirebug
Anil Sagar ([email protected])Gaurav Kumar ([email protected])
Blisstering Solutions(www.blisstering.com)