Drupal 7. There is a service, there will send the request, it returns an xml. With the handler present in human readable form. We bring a response variable. How to display the value of this variable on the page? I created a page with hook_menu:

function mymodule_menu() {
  $items = array();
  $items['serch'] = array(
    'title' => 'Result',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('mymodule_proc'),
    'type' => MENU_CALLBACK,
  return $items;

function mymodule_proc($parms){


In the FORM API I have not found a suitable element. If use it hook_page_alter, I don't know how apply to the content?


or something else....

1 Answer 1


You can use the #markup property to display arbitrary data.

The function signature for your drupal_get_form callbacks must be:

function mymodule_proc($form, $form_state) {}

Concerning the response object that you want to render, I would need more information in order to help you.

  • I want to display in the region "content" data which are not in the database. Standard way to do this through the admin panel or standard modules does not work.
    – user25795
    Commented Jan 29, 2014 at 2:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.