function drush_generate_is_number
Same name in other branches
- 7.x-1.x 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
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;
}