Devel Generate Ipsum

Component ID

2379183

Component name

Devel Generate Ipsum

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

455

Component created

Component changed

Component body

New dictionaries for Devel Generate.

Some are useful, like 'American Names' and 'Fillerati Ipsum'.
Other are just funny, like 'Pirate Ipsum'.

This module depends on this patch:
https://www.drupal.org/files/issues/devel-support_for_alternate_dictiona...

diff --git a/devel_generate/devel_generate.inc b/devel_generate/devel_generate.inc
index 756b29e..81f9139 100644
--- a/devel_generate/devel_generate.inc
+++ b/devel_generate/devel_generate.inc
@@ -474,6 +474,9 @@ function devel_generate_word($length){
     $word .= $cons[mt_rand(0, $num_cons - 1)] . $vowels[mt_rand(0, $num_vowels - 1)];
   }
 
+  // Allow other modules to change the word.
+  drupal_alter('devel_generate_word', $word);
+
   return substr($word, 0, $length);
 }
 
@@ -553,6 +556,10 @@ function devel_create_greeking($word_count, $title = FALSE) {
     "veniam", "venio", "vereor", "vero", "verto", "vicis", "vindico",
     "virtus", "voco", "volutpat", "vulpes", "vulputate", "wisi", "ymo",
     "zelus");
+
+  // Allow other modules to change the dictionary.
+  drupal_alter('devel_generate_dictionary', $dictionary);
+
   $dictionary_flipped = array_flip($dictionary);
 
   $greeking = '';

New dictionaries:

  • Fillerati
  • Corporate
  • American first names
  • Dutch first names
  • Asian last names
  • Pasta
  • Gangsta
  • Veggi
  • Pirate