3

error messages not displaying in custom form template in drupal 6?

http://drupal.org

I implemented custom template file for form using below code in template.php

<?php
function mytheme_theme() {
  return array(
    'nsa_create_form' => array(
       'arguments' => array('form' => NULL),
       'template' => 'nsa-create',
       ),
   );
}
?>

And added nsa-create.tpl.php with the below lines of code

<?php if ($show_messages && $messages): print $messages; endif; ?>

<?= drupal_render($form['start_date']) ?>
<?= drupal_render($form['end_date']) ?>
<?= drupal_render($form['confirm_dates']) ?>
<?= drupal_render($form['name']) ?>
<?= drupal_render($form['emp_id']) ?>
<?= drupal_render($form['client']) ?>
<?= drupal_render($form['designation']) ?>
<?= drupal_render($form['manager']) ?>
<?= drupal_render($form['competency']) ?>
<?= drupal_render($form['wrapper_nsa']) ?>
<?= drupal_render($form['submit']) ?>

its rendered properly but error/validation messages are not displayed and no red border for invalid fields.

Help please..

Read »
Created by Dplanet 22 weeks 5 hours ago
Category: Theming   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for error messages not displaying in custom form template in drupal 6?

Recent comments