The title pretty much says it all.

$form['keys'] = array('#type' => 'textfield', '#size'=> 15, '#value' => '', '#attributes' => array('alt' => t('Enter the terms you wish to search for.'), 'class' => 'form-text'));

i guess you are setting the class property on all fields in the form API nowadays. am i right?

Comments

saerdna’s picture

Also, in /search/node the document will not validate because

line 80 column 2 - Warning: anchor "edit-keys" already defined
line 122 column 1 - Warning: anchor "edit-form_id" already defined

Sounds trivial, the both forms do the same thing but i want the validator icon in the status bar to be happy :-)

chx’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)