You are here

function theme_markup in Drupal 6

Same name and namespace in other branches
  1. 4 includes/form.inc \theme_markup()
  2. 5 includes/form.inc \theme_markup()

Format HTML markup for use in forms.

This is used in more advanced forms, such as theme selection and filter format.

Parameters

$element: An associative array containing the properties of the element. Properties used: value, children.

Return value

A themed HTML string representing the HTML markup.

Related topics

File

includes/form.inc, line 2245

Code

function theme_markup($element) {
  return (isset($element['#value']) ? $element['#value'] : '') . (isset($element['#children']) ? $element['#children'] : '');
}