drupal-render

Can I Omit <?php drupal_render($form); ?>

I have noticed that in your form theme file, whatever-form.tpl.php , when you omit <?php drupal_render($form); ?> the only parts of the form that are rendered is what you specified - so I can also omit all of these lines: <?php $form['title']['#access'] = FALSE; ?> <?php $form['body']['#access'] = FALSE; ?> <?php $form['menu']['#acc...

drupal_render: how to make well-formed div structure of the form?

I noticed, forms "story_node_form" or "node_form" are formed like this: form->div->div->div-standard+div-admin+submin-button My custom content type is not formed this way: I have 49 checkboxes. I placed them with drupal_render() into table like here: http://eugen.gotdns.com/test/zeitplaner.png After that i've done drupal_render($form)...

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! <?php Array ( [#type] => textfield [#title] => Label [#default_value] => [#post] => Array ...

Drual form in tabular layout

I am trying to render a tabular layout (html table) for a form such that first cell contains a checkbox. $form = array(); $res = query('SELECT * FROM {mytable}'); $rows = array(); while($row = db_fetch_array($res)){ $record = array(); $checkbox = array( '#type' => 'checkbox', '#attributes' => array( '...

drupal_render doesn't render form element

I have this code that implements hook_form_alter for durpal search form and adds couple of new elements there. I have also added theme overwrite code in my template.php for the said form. In addition to this, I also pass form elements there. Everything works fine - adds new elements, theme is used;but, here's the problem. When I try to r...