Return Table and Form in page callback I have a problem returning table and form in page callback at the same time it only works if one of them only returned.

function _table_maps(){
$query = db_select('maps','m');

$result = $query-&gt;fields('m')
                -&gt;extend('TableSort')
                -&gt;extend('PagerDefault') 
                -&gt;limit(50)
                -&gt;execute(); 

$header = array('Title','Longitude','Latitude','Description');

$rows = array();
while($data = $result-&gt;fetchAssoc())
{
    $rows[] = array(
        $data['maps_title'],
        $data['maps_long'],
        $data['maps_lat'],
        $data['maps_desc']
    );
}

$output = theme_table(
            array(
                "header" =&gt; $header,
                "rows" =&gt; $rows,
                "attributes" =&gt; array(),
                "sticky" =&gt; true, 
                "caption" =&gt; "",
                "colgroups" =&gt; array(),
                "empty" =&gt; t("Table has no row!")
                )
            ).theme("pager");

return $output;


}

function aieadmin_map_form($form_state){

$form['title'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Title'),
    '#size' =&gt; 30,
    '#maxlength' =&gt; 64,
    '#description' =&gt; t('Enter the Title For the Location'),
);

$form['long'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Longitude'),
    '#size' =&gt; 30,
    '#maxlength' =&gt; 64,
    '#description' =&gt; t('Enter the Longitude For the Location'),
);

$form['lat'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Latitude'),
    '#size' =&gt; 30,
    '#maxlength' =&gt; 64,
    '#description' =&gt; t('Enter the Latitude For the Location'),
);

$form['description'] = array(
    '#type' =&gt; 'textarea',
    '#title' =&gt; t('Describe it'),
    '#cols' =&gt; 60,
    '#rows' =&gt; 5,
    '#description' =&gt; t('Location description.'),
);

$form['submit'] = array('#type' =&gt; 'submit', '#value' =&gt; t('Save'));

return $form; 
}


/*******Page Callbacks********/

function aieadmin_callback_mod(){
$page = _table_maps();
$page .= drupal_get_form('aieadmin_map_form');
return $page;
}
try this in the form

$custom_table = _table_maps();

$form['some_information'] = array(
  '#markup' =&gt; $custom_table,
  '#prefix' =&gt; '&lt;div class="custom-class"&gt;',
  '#suffix' =&gt; '&lt;/div&gt;',
);