Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Implements hook_form_alter().
*/
function sandbox_custom_form_alter(&$form, &$form_state, $form_id) {
kpr($form);
if ($form['#id'] == 'views-exposed-form-news-page') {
// $my_label = 'label name';
$my_label = $form['#info']['filter-type']['label'];