Parsear parámetros GET / POST a un array

23/02/2016

En Drupal 7:

// Query params from url.
$query_params = drupal_get_query_parameters();

// Query params from POST.
$query_params = drupal_get_query_parameters($_POST);