summaryrefslogtreecommitdiffstats
path: root/devel_generate/list.devel_generate.inc
diff options
context:
space:
mode:
Diffstat (limited to 'devel_generate/list.devel_generate.inc')
-rw-r--r--devel_generate/list.devel_generate.inc20
1 files changed, 0 insertions, 20 deletions
diff --git a/devel_generate/list.devel_generate.inc b/devel_generate/list.devel_generate.inc
deleted file mode 100644
index d8101c7..0000000
--- a/devel_generate/list.devel_generate.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-// Id$
-
-function list_devel_generate($object, $field, $instance, $bundle) {
- if (field_behaviors_widget('multiple values', $instance) == FIELD_BEHAVIOR_CUSTOM) {
- return devel_generate_multiple('_list_devel_generate', $object, $field, $instance, $bundle);
- }
- else {
- return _list_devel_generate($object, $field, $instance, $bundle);
- }
-}
-
-function _list_devel_generate($object, $field, $instance, $bundle) {
- $object_field = array();
- if ($allowed_values = list_allowed_values($field)) {
- $keys = array_keys($allowed_values);
- $object_field['value'] = $keys[mt_rand(0, count($allowed_values) - 1)];
- }
- return $object_field;
-}