Skip to main content
2 of 2
Put code in code blocks
Mołot
  • 21.9k
  • 8
  • 59
  • 112

How to bring a third-party content?

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?

$page['content']['system_main']['pager']
$page['content']
$page['content']['system_main']

or something else....