You are here

function drush_generate_is_number in Devel 7

Same name and namespace in other branches
  1. 6 devel_generate.drush.inc \drush_generate_is_number()
5 calls to drush_generate_is_number()
drush_devel_generate_content in devel_generate/devel_generate.drush.inc
Command callback. Generate a number of nodes and comments.
drush_devel_generate_menus in devel_generate/devel_generate.drush.inc
Command callback. Generate a number of menus and menu links.
drush_devel_generate_terms in devel_generate/devel_generate.drush.inc
Command callback. Generate a number of terms in given vocabs.
drush_devel_generate_users in devel_generate/devel_generate.drush.inc
Command callback. Generate a number of users.
drush_devel_generate_vocabs in devel_generate/devel_generate.drush.inc
Command callback. Generate a number of vocabularies.

File

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

Code

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