asset_list_cql_filter_form()The asset cql filter form.
vpx_beheer_mm/asset/asset.module, line 493
<?php
function asset_list_cql_filter_form() {
asset_js_progress();
$cql_collapsed = (isset($_SESSION['asset_filter_form']['cql_filter'])) ? FALSE : TRUE;
$form['cql_filter'] = array(
'#type' => 'fieldset',
'#title' => t('CQL Filter'),
'#collapsed' => $cql_collapsed,
'#collapsible' => TRUE,
'#prefix' => '<div id="search-terms">',
'#suffix' => '</div>',
);
$form['cql_filter']['cql_search_field'] = array(
'#type' => 'textfield',
'#name' => 'cql_value',
'#default_value' => $_SESSION['asset_filter_form']['cql_filter'],
'#description' => t('Enter a CQL search command here. Usage can be found in the Webservice document. Examples: "aut_app==5" or "is_protected == FALSE"'));
$form['cql_filter']['submit'] = array(
'#type' => 'submit',
'#value' => 'Apply CQL filter',
'#submit' => array('asset_list_cql_filter_form_submit'),
);
$form['#attributes'] = array('onSubmit' => 'monitorProgress();');
return $form;
}
?>