Drupal 7:如何从暴露的过滤器设置标签

时间:2014-01-08 08:36:52

标签: php drupal-7

如何从自定义模块中的外露过滤器中取消设置标签? (form_alter)

HTML:

...
<form action="/location-list" method="get" id="views-exposed-form-zoekresultaten-geolocation-zoekresultaten" accept-charset="UTF-8">
    <div>
        <div class="views-exposed-form">
        <div class="views-exposed-widgets clearfix">
        <div id="edit-distance-wrapper" class="views-exposed-widget views-widget-filter-distance">
        <div class="views-widget">
        <div class="form-item form-type-textfield form-item-distance-postal-code">
        <label for="edit-distance-postal-code">Postcode </label>
        <input type="text" id="edit-distance-postal-code" name="distance[postal_code]" value="" size="60" maxlength="16" class="form-text" />
    </div>
...

1 个答案:

答案 0 :(得分:0)

您是否尝试使用form_alter更改字段并设置'#title_display'=&gt;在你的领域内“看不见”? Form api reference