Summary
After reading this chapter, you should be able to perform the following tasks:
-
Create a Drupal module from scratch.
-
Understand how to hook into Drupal’s code execution.
-
Store and retrieve module-specific settings.
-
Create and process simple forms using Drupal’s forms API.
-
Create a new administrative category on Drupal’s main administration page.
-
Define a form for the site administrator to choose options using check boxes, text input fields, and radio buttons.
-
Validate settings and present an error message if validation fails.
-
Understand how Drupal stores and retrieves settings using the built-in persistent variable system.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Rights and permissions
Copyright information
© 2010 Todd Tomlinson and John K. VanDyk
About this chapter
Cite this chapter
Tomlinson, T., VanDyk, J.K. (2010). Writing a Module. In: Lowman, M., et al. Pro Drupal 7 Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-2839-4_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2839-4_2
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-2838-7
Online ISBN: 978-1-4302-2839-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books