repo.or.cz
/
kate-drupal-snippets.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
185040c
)
add hook_form_alter snippet
author
Daniel Wehner
<
[email protected]
>
Sat, 20 Mar 2010 11:20:31 +0000
(20 12:20 +0100)
committer
Daniel Wehner
<
[email protected]
>
Sat, 20 Mar 2010 11:20:31 +0000
(20 12:20 +0100)
drupal.xml
patch
|
blob
|
blame
|
history
diff --git
a/drupal.xml
b/drupal.xml
index
a3b61bd
..
3936be9
100644
(file)
--- a/
drupal.xml
+++ b/
drupal.xml
@@
-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(&$form, &$form_state) {
+ ${cursor}
+}
+</fillin>
+ </item>
</snippets>