~ubuntu-branches/ubuntu/karmic/drupal5/karmic

« back to all changes in this revision

Viewing changes to includes/form.inc

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Lesicnik
  • Date: 2008-12-02 11:31:44 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081202113144-24pidtd729n4esjq
Tags: 5.12-2ubuntu1
* Merge from debian unstable, remaining changes: (LP: #304334)
 + debian/patches/02_htaccess:
  - Add RewriteBase /drupal5
 + debian/control:
  - Replace exim4 with postfix in Depends.
 - Fix for debian/watch.
  - add Homepage field.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: form.inc,v 1.174.2.14 2008/08/04 04:00:24 drumm Exp $
 
2
// $Id: form.inc,v 1.174.2.15 2008/09/15 06:03:17 drumm Exp $
3
3
 
4
4
/**
5
5
 * @defgroup form Form generation
1538
1538
 *   A string representing the form element.
1539
1539
 */
1540
1540
function theme_form_element($element, $value) {
1541
 
  $output  = '<div class="form-item">'."\n";
 
1541
  $output  = '<div class="form-item"';
 
1542
  if (!empty($element['#id'])) {
 
1543
    $output .= ' id="'. $element['#id'] .'-wrapper"';
 
1544
  }
 
1545
  $output .= ">\n";
1542
1546
  $required = !empty($element['#required']) ? '<span class="form-required" title="'. t('This field is required.') .'">*</span>' : '';
1543
1547
 
1544
1548
  if (!empty($element['#title'])) {