You are here

function date_content_generate_key in Date 7

Same name and namespace in other branches
  1. 8 date_repeat_field/date_repeat_field.devel_generate.inc \date_content_generate_key()
  2. 5.2 date/date_content_generate.inc \date_content_generate_key()
  3. 6.2 date/date_content_generate.inc \date_content_generate_key()
  4. 7.3 date_repeat_field/date_repeat_field.devel_generate.inc \date_content_generate_key()
  5. 7.2 date_repeat_field/date_repeat_field.devel_generate.inc \date_content_generate_key()
1 call to date_content_generate_key()
date_devel_generate in ./date.devel_generate.inc
Implementation of Devel module's hook_content_generate().

File

./date.devel_generate.inc, line 164
Date Devel Generate code.

Code

function date_content_generate_key($array) {
  $keys = array_keys($array);
  $min = array_shift($keys);
  $max = array_pop($keys);
  return mt_rand($min, $max);
}