You are here

function party_generate_label in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_devel/devel_generate.inc \party_generate_label()
1 call to party_generate_label()
party_devel_generate_party_add_party in modules/party_devel/devel_generate.inc
Create one party. Used by both batch and non-batch code branches.

File

modules/party_devel/devel_generate.inc, line 118
Devel generate code.

Code

function party_generate_label() {
  $first_name = array(
    "Addie",
    "Aida",
    "Allie",
    "Amanda",
    "Anita",
    "Anne",
    "Audie",
    "Augusta",
    "Barb",
    "Barry",
    "Bea",
    "Ben",
    "Bess",
    "Celine",
    "Chris",
    "Constance",
    "Dave",
    "Eileen",
    "Frank",
    "Grace",
    "Harriet",
    "Hazel",
    "Hope",
    "Hugh",
    "Isabelle",
    "Ivana",
    "Jessica",
    "John",
    "Josie",
    "Liz",
    "Lois",
    "Luke",
    "Lynn",
    "Manny",
    "Mark",
    "Marsha",
    "Martin",
    "Maureen",
    "Minnie",
    "Missy",
    "Olive",
    "Paige",
    "Patty",
    "Peg",
    "Phillip",
    "Randy",
    "Ray",
    "Reeve",
    "Rhoda",
    "Rita",
    "Suzie",
    "Teri",
    "Tex",
    "Theresa",
  );
  $second_name = array(
    "Anderson",
    "Andrews",
    "Brown",
    "Campbell",
    "Clark",
    "Clarke",
    "Davies",
    "De Wet",
    "Du Toit",
    "Edwards",
    "Evans",
    "Garcia",
    "Green",
    "Hall",
    "Harris",
    "Hughes",
    "Jackson",
    "Johnson",
    "Jones",
    "Khan",
    "Kumar",
    "Lewis",
    "Macdonald",
    "Martin",
    "Martinez",
    "Miller",
    "Mitchell",
    "Moore",
    "Morrison",
    "Mumford",
    "Murray",
    "Patak",
    "Patel",
    "Patel",
    "Paterson",
    "Reid",
    "Roberts",
    "Robertson",
    "Robinson",
    "Rogers",
    "Ross",
    "Scott",
    "Smith",
    "Stewart",
    "Taylor",
    "Thomas",
    "Thompson",
    "Walker",
    "Watson",
    "White",
    "Williams",
    "Wilson",
    "Wright",
    "Young",
  );
  $num_first_name = count($first_name);
  $num_second_name = count($second_name);
  $name = $first_name[mt_rand(0, $num_first_name - 1)] . ' ' . $second_name[mt_rand(0, $num_second_name - 1)];
  return $name;
}