Return from external form
Permalink
The sample TestFormExternalFormBlockController shows the action returning true:
What does a return of true mean? Should false be returned if processing produces an error?
On a related matter, is there a way to return JSON from an external form rather than text?
public function action_test_search() { $this->set('response', t('Thanks!')); return true; }
What does a return of true mean? Should false be returned if processing produces an error?
On a related matter, is there a way to return JSON from an external form rather than text?