function render

cis7 common.inc render(&$element)
cle7 common.inc render(&$element)
elmsmedia7 common.inc render(&$element)
icor7 common.inc render(&$element)
meedjum_blog7 common.inc render(&$element)
mooc7 common.inc render(&$element)

Renders an element.

This function renders an element using drupal_render(). The top level element is shown with show() before rendering, so it will always be rendered even if hide() had been previously used on it.

Parameters

$element: The element to be rendered.

Return value

The rendered element.

See also

drupal_render()

show()

hide()

168 calls to render()
accessibility-test.tpl.php in sites/all/modules/ulmus/accessibility/accessibility-test.tpl.php
A basic template for model entities
adaptivetheme_process_node in sites/all/themes/ulmus/adaptivetheme/at_core/inc/process.inc
Process variables for node.tpl.php
block--actions.tpl.php in sites/all/themes/ulmus/aurora/templates/blockify/block--actions.tpl.php
block--logo.tpl.php in sites/all/themes/ulmus/aurora/templates/blockify/block--logo.tpl.php
block.tpl.php in modules/block/block.tpl.php
Default theme implementation to display a block.

... See full list

16 string references to 'render'
cis_shortcodes_entity_view in sites/all/modules/elmsln_contrib/cis_connector/modules/cis_shortcodes/cis_shortcodes.module
Implements hook_entity_view().
ctools_content_process in sites/all/modules/ulmus/ctools/includes/content.inc
Provide defaults for a content type.
hook_batch_alter in modules/system/system.api.php
Alter batch information before a batch is processed.
http_response.inc in sites/all/modules/ulmus/ctools/page_manager/plugins/task_handlers/http_response.inc
This is the task handler plugin to handle generating 403, 404 and 301 response codes.
media_browser_form_submit in sites/all/modules/ulmus/media/media.module
Submit handler; direction form submissions in the media browser.

... See full list

File

includes/common.inc, line 5988
Common functions that many Drupal modules will need to reference.

Code

function render(&$element) {
  if (is_array($element)) {
    show($element);
    return drupal_render($element);
  }
  else {
    // Safe-guard for inappropriate use of render() on flat variables: return
    // the variable as-is.
    return $element;
  }
}