Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jeremy-green/6022861 to your computer and use it in GitHub Desktop.
Save jeremy-green/6022861 to your computer and use it in GitHub Desktop.
Drupal 7: Snippet when creating a node dynamically and you dont want to write it a billion times
<snippet>
<content><![CDATA[
\$node->field_${1:}[\$node->language][0]['value'] = \$values['${2:}'];
]]></content>
<tabTrigger>anf</tabTrigger>
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment