add hook_form_alter snippet
authorDaniel Wehner <[email protected]>
Sat, 20 Mar 2010 11:20:31 +0000 (20 12:20 +0100)
committerDaniel Wehner <[email protected]>
Sat, 20 Mar 2010 11:20:31 +0000 (20 12:20 +0100)
drupal.xml

index a3b61bd..3936be9 100644 (file)
@@ -134,4 +134,17 @@ while ($item = ${db_fetch_object}($result)) {
   ${cursor}
 }</fillin>
  </item>
+ <item>
+  <displayprefix></displayprefix>
+  <match>hook_form_alter</match>
+  <displaypostfix></displaypostfix>
+  <displayarguments></displayarguments>
+  <fillin>/**
+ * Implements hook_form_alter().
+ */
+function ${modulename}_form_alter(&amp;$form, &amp;$form_state) {
+  ${cursor}
+}
+</fillin>
+ </item>
 </snippets>