Created
November 12, 2011 16:14
-
-
Save HollyIT/1360746 to your computer and use it in GitHub Desktop.
Drupal Form Declaration Snippet For NDDT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<item> | |
<title>Declare Form</title> | |
<external></external> | |
<group>snippet</group> | |
<template><![CDATA[ | |
/** | |
* Form builder; ${form_id} | |
* | |
* @see ${form_id}_validate() | |
* @see ${form_id}_submit() | |
*/ | |
function ${form_id}($form, &$form_state){ | |
${set_cursor} | |
} | |
/** | |
* Form validation handler for ${form_id}(). | |
*/ | |
function ${form_id}_validate($form, &$form_state){ | |
${set_cursor} | |
} | |
/** | |
* Form submission handler for ${form_id}(). | |
*/ | |
function ${form_id}_submit($form, &$form_state){ | |
${set_cursor} | |
} | |
]]></template> | |
<help></help> | |
</item> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment