Skip to content

Instantly share code, notes, and snippets.

@duellj
Created April 23, 2013 18:03
Show Gist options
  • Select an option

  • Save duellj/5445913 to your computer and use it in GitHub Desktop.

Select an option

Save duellj/5445913 to your computer and use it in GitHub Desktop.
<?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