Skip to content

Commit

Permalink
- Patch #392696 by yched et al: save default values on insert.
Browse files Browse the repository at this point in the history
  • Loading branch information
dries committed May 1, 2009
1 parent 77f9b97 commit aecf067
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/simpletest/tests/field_test.module
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// $Id: field_test.module,v 1.4 2009/04/28 05:24:41 webchick Exp $
// $Id: field_test.module,v 1.5 2009/05/01 19:17:46 dries Exp $

define('FIELD_TEST_ELEMENT_ID', 1);
define('FIELD_TEST_BUNDLE', 'test_bundle');
Expand Down Expand Up @@ -523,4 +523,11 @@ function theme_field_formatter_field_test_multiple($element) {
}
$output = implode('|', $items);
return $settings['test_formatter_setting_multiple'] . '|' . $output;
}

/**
* Sample function to test default value assignment.
*/
function field_test_default_value($obj_type, $object, $field, $instance) {
return array(array('value' => 99));
}

0 comments on commit aecf067

Please sign in to comment.