You are here

function drush_generate_is_number in Devel 6

Same name and namespace in other branches
  1. 7 devel_generate/devel_generate.drush.inc \drush_generate_is_number()
3 calls to drush_generate_is_number()
drush_devel_generate_generate_content in ./devel_generate.drush.inc
Command callback. Generate a number of content.
drush_devel_generate_generate_taxonomy in ./devel_generate.drush.inc
Command callback. Generate a number of taxonomy.
drush_devel_generate_generate_users in ./devel_generate.drush.inc
Command callback. Generate a number of users.

File

./devel_generate.drush.inc, line 144
Generate content, taxonomy, and users via drush framework.

Code

function drush_generate_is_number($number) {
  if ($number == NULL) {
    return FALSE;
  }
  if (!is_numeric($number)) {
    return FALSE;
  }
  if ($number < 0) {
    return FALSE;
  }
  return TRUE;
}