/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function themename_type_node_form($form) { $form['signup']['#collapsible'] = FALSE; $form['signup']['#collapsed'] = FALSE; } $form['locations'][0]['latitude']['#type'] = 'hidden'; $form['locations'][0]['latitude']['#value'] = ''; $form['locations'][0]['latitude']['#default_value'] = ''; $form['locations'][0]['longitude']['#type'] = 'hidden'; $form['locations'][0]['longitude']['#value'] = ''; $form['locations'][0]['longitude']['#default_value'] = ''; $form['locations'][0]['province']['#options']['xx'] = 'OTHER'; $form['locations'][0]['province']['#options']['us000'] = ' -- PLEASE CHOOSE ONE -- '; } return drupal_render($form); }