From bd033cda8fa93ade32d6fdef53a4d46397e1a372 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 7 Dec 2008 23:05:00 +0000 Subject: Move form.html.php from themes/default/views to core/views --- themes/default/views/form.html.php | 62 -------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 themes/default/views/form.html.php (limited to 'themes/default') diff --git a/themes/default/views/form.html.php b/themes/default/views/form.html.php deleted file mode 100644 index 86f1e38a..00000000 --- a/themes/default/views/form.html.php +++ /dev/null @@ -1,62 +0,0 @@ - -"; -} -if ($title) { - print ""; -} - -if (!function_exists("DrawForm")) { - function DrawForm($inputs, $level=1) { - $error_messages = array(); - $prefix = str_repeat(" ", $level); - - foreach ($inputs as $input) { - if ($input->type == 'group') { - print "$prefix
\n"; - print "$prefix $input->name\n"; - print "$prefix \n"; - - // Since hidden fields can only have name and value attributes lets just render it now - $hidden_prefix = "$prefix "; - foreach ($input->hidden as $hidden) { - print "$prefix {$hidden->render()}\n"; - } - print "$prefix
\n"; - } else { - if ($input->error_messages()) { - print "$prefix
  • \n"; - } else { - print "$prefix
  • \n"; - } - - if ($input->label()) { - print "$prefix {$input->label()}\n"; - } - print "$prefix {$input->render()}\n"; - if ($input->message()) { - print "$prefix

    {$input->message()}

    \n"; - } - if ($input->error_messages()) { - foreach ($input->error_messages() as $error_message) { - print "$prefix

    \n"; - print "$prefix $error_message\n"; - print "$prefix

    \n"; - } - } - print "$prefix
  • \n"; - } - } - } -} -DrawForm($inputs); - -print($close); -?> -- cgit v1.2.3