Questions tagged [drupal-render]

drupal_render() is a function that renders HTML given a structured array tree with a specific structure.

drupal_render() renders HTML given a structured array tree, and it is usually called from within another function, such as drupal_get_form() or node_view().

Rendering arrays are a generalization of the arrays used from the form API. Differently from the latter, they don't use properties to validate the user input, but to render an item on a page.

Related functions

20 questions
0
votes
1 answer

Call to drupal_render() returns NULL

I have been looking since yesterday but can't understand why a call to drupal_render() is returning NULL. In my node theme function, when I call drupal_render($element) with $element being defined like below, it renders nothing!
0
votes
3 answers

Can I Omit

I have noticed that in your form theme file, whatever-form.tpl.php , when you omit the only parts of the form that are rendered is what you specified - so I can also omit all of these lines:
rlb.usa
  • 14,942
  • 16
  • 80
  • 128
0
votes
1 answer

D6: drupal_render in form causes various problems (default value, ID, date_select)

I have a problem with drupal_render (assuming that drupal_render is the right way for me to get what I want - feel free to correct me =). I am building a form. Since the FAPI does not provide a "table"-field, I want to make one myself. My approach:…
Clemens
  • 3
  • 3
0
votes
1 answer

How do I set the theme during cron run in my module code for Drupal 7

During a cron run, I have a module that will cache the markup for many nodes. My problem is that during this cron run, any markup from the render function won't go through my themes hooks or templates. From within my module code, how can I select…
curiouser
  • 970
  • 2
  • 12
  • 22
0
votes
1 answer

Drupal render() - make printed content ucfirst

I have a drupal template that renders some content like this:
Cybercampbell
  • 2,486
  • 11
  • 48
  • 75
1
2