Importance Of #attached Attribute In Drupal Forms API Reference, A New Feature In Drupal 7
==================================================================== function myModule_personal_detail_form($form, &$form_state) { $form = array(); $form = array( '#type' => 'textfield', ); $form = array( '#type' => 'textfield', ); $form = array( '#type' => 'textfield', '#maxlength' => 3, ); // Get the path to the module $path = drupal_get_path('module', 'myModule'); // Attach the CSS and JS to the form $form = array(…
read more