Get Post data of a view in inside a block I am actualy tring to get the posted data from a views filter and display it inside a custom block.

This is what my code looks like for now

&lt;?php
/**
 * Implements hook_block_info().
 */
function search_block_header_block_info(){
    $block['search_header'] = array(
        'info' =&gt; t('Search Header'),
        'cache' =&gt; DRUPAL_NO_CACHE,
    );
    return $block;
}

/**
 * Define what our block is going to look like.
 * Implements hook_block_view().
 */
function search_block_header_block_view($block_key){
    $block = array();

    if($block_key == 'search_header'){ //We only want to define the content of OUR block

        dsm($_POST);
        //This is the title of the block.
        $block['subject'] = t('Search Header');
    }

    return $block;
}


But for some reason the $_POST variable is always empty. Someone got a hint for me how to get the posted data?
Try

$view = views_get_current_view();
dsm($view-&gt;exposed_input);


instead $_POST.