API, PHP

Using a form hook alter in drupal exmaple1

Modifying Forms Using Alter Hooks The ability of themes to use alter hooks is new in Drupal 7.   Using an alter hook is perfect for quick changes like: -Simple changes to form labels, descriptions, and other properties. -Changing the order in which the form elements print using the #weight property. -Wrapping a few elements in a <div> or <fieldset>.…

Continue Reading