I have a Drupal 7 module that is making an AJAX call via
jQuery.ajax() to a menu callback that I've defined in my module. The purpose isn't to return markup, but rather just a single string value.
This is all working as it should, but the method by which I'm passing the value back to jQuery seems messy to me.
// $condition is a simple string value. print($condition); drupal_exit();
Is there a cleaner, more standardized way of doing this? This just feels hackish and messy to me.