function chado_pub_node_form_add_new_empty_props
1.x pub_form.inc | chado_pub_node_form_add_new_empty_props(&$form, $properties_select) |
1 call to chado_pub_node_form_add_new_empty_props()
- chado_pub_form in tripal_pub/
includes/ pub_form.inc
File
- tripal_pub/
includes/ pub_form.inc, line 361
Code
function chado_pub_node_form_add_new_empty_props(&$form, $properties_select) {
// add one more blank set of property fields
$form['properties']['new']["new_id"] = array(
'#type' => 'select',
'#options' => $properties_select,
'#ahah' => array(
'path' => "tripal_pub/properties/description",
'wrapper' => 'tripal-pub-new_value-desc',
'event' => 'change',
'method' => 'replace',
),
);
$form['properties']['new']["new_value"] = array(
'#type' => 'textarea',
'#default_value' => '',
'#cols' => 5,
'#rows' => $rows,
'#description' => '<div id="tripal-pub-new_value-desc"></div>'
);
$form['properties']['new']["add"] = array(
'#type' => 'image_button',
'#value' => t('Add'),
'#src' => drupal_get_path('theme', 'tripal') . '/images/add.png',
'#ahah' => array(
'path' => "tripal_pub/properties/add",
'wrapper' => 'tripal-pub-edit-properties-table',
'event' => 'click',
'method' => 'replace',
),
'#attributes' => array('onClick' => 'return false;'),
);
}