function dynamic_banner_admin_search_form in Dynamic Banner 7
Get form for search
1 string reference to 'dynamic_banner_admin_search_form'
- dynamic_banner_admin_page in includes/
callbacks.inc - Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
File
- includes/
callbacks.inc, line 243 - Dynamic Banner Admin Pages and various other functions to make them work Most of the code in this file was derived from path module
Code
function dynamic_banner_admin_search_form($form) {
$emptySearch = $_GET['searchUrl'] == '' && $_GET['searchImgUrl'] == '' && $_GET['searchText'] == '' && $_GET['searchLink'] == '';
$form['search'] = array(
'#type' => 'fieldset',
'#title' => t('Search'),
'#collapsible' => TRUE,
'#collapsed' => $emptySearch,
);
$form['search']['url'] = array(
'#type' => 'textfield',
'#title' => t("URL"),
'#default_value' => $_GET['searchUrl'],
'#size' => 50,
'#required' => FALSE,
'#maxlength' => 512,
);
/* disable this field for now
$form['search']['img_url'] = array(
'#type' => 'textfield',
'#title' => t("IMGURL"),
'#default_value' => $_GET['searchImgUrl'],
'#size' => 50,
'#required' => FALSE,
'#maxlength' => 512,
);
*/
$form['search']['text'] = array(
'#type' => 'textfield',
'#title' => t("TEXT"),
'#default_value' => $_GET['searchText'],
'#size' => 50,
'#required' => FALSE,
'#maxlength' => 512,
);
$form['search']['link'] = array(
'#type' => 'textfield',
'#title' => t("LINK"),
'#default_value' => $_GET['searchLink'],
'#size' => 50,
'#required' => FALSE,
'#maxlength' => 512,
);
$form['search']['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
$form['search']['reset'] = array(
'#type' => 'submit',
'#value' => 'Reset',
'#submit' => array(
'dynamic_banner_admin_search_form_reset',
),
);
return $form;
}