You are here

function common_test_drupal_render_printing_pre_render in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/common_test/common_test.module \common_test_drupal_render_printing_pre_render()
  2. 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_drupal_render_printing_pre_render()

Applies #printed to an element to help test #pre_render.

1 string reference to 'common_test_drupal_render_printing_pre_render'
DrupalRenderTestCase::testDrupalRenderBasics in modules/simpletest/tests/common.test
Tests the output drupal_render() for some elementary input values.

File

modules/simpletest/tests/common_test.module, line 130
Helper module for the Common tests.

Code

function common_test_drupal_render_printing_pre_render($elements) {
  $elements['#printed'] = TRUE;
  return $elements;
}