function tripal_contact_property_add

1.x tripal_contact.form.inc tripal_contact_property_add()
1 string reference to 'tripal_contact_property_add'
tripal_contact_menu in tripal_contact/tripal_contact.module
Tripal-contact-Menu

File

tripal_contact/includes/tripal_contact.form.inc, line 481

Code

function tripal_contact_property_add() {
  $status = TRUE;

  // prepare and render the form
  $form = tripal_core_ahah_prepare_form();

  // we only want to return the properties as that's all we'll replace with this AHAh callback
  $data = tripal_contact_theme_node_form_properties($form);

  // bind javascript events to the new objects that will be returned
  // so that AHAH enabled elements will work.
  $settings = tripal_core_ahah_bind_events();

  // return the updated JSON
  drupal_json(
  array(
    'status' => $status,
    'data' => $data,
    'settings' => $settings,
  )
  );
}