You are here

function devel_create_para in Devel 6

Same name and namespace in other branches
  1. 5 devel_generate.inc \devel_create_para()
  2. 7 devel_generate/devel_generate.inc \devel_create_para()
1 call to devel_create_para()
devel_create_content in ./devel_generate.inc

File

./devel_generate.inc, line 281

Code

function devel_create_para($words, $type = 0) {
  $output = "";
  switch ($type) {
    case 1:
      $output .= "<p>";
      $output .= devel_create_greeking($words);
      $output = trim($output) . "</p>";
      break;
    case 2:
      $output .= devel_create_greeking($words);
      $output = trim($output) . "<br />";
      break;
    default:
      $output .= devel_create_greeking($words);
      $output = trim($output);
  }
  return $output;
}