Created
April 23, 2013 18:03
-
-
Save duellj/5445913 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <?php | |
| /** | |
| * Implements hook_node_presave(). | |
| */ | |
| function ombuprofile_node_presave($node) { | |
| if (isset($node->devel_generate)) { | |
| switch ($node->type) { | |
| $node->title = 'asldfkj alsdkfja lsdkfj'; | |
| $node->field_blog[LANGUAGE_NONE][0]['tid'] = STATE_NATIONAL_TERM_TID; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment