function tripal_analysis_property_add

1.x tripal_analysis.form.inc tripal_analysis_property_add()
1 string reference to 'tripal_analysis_property_add'
tripal_analysis_menu in tripal_analysis/tripal_analysis.module
Implementation of hook_menu(). Entry points and paths of the module

File

tripal_analysis/includes/tripal_analysis.form.inc, line 601

Code

function tripal_analysis_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_analysis_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,
  )
  );
}