By helsinki on
This is code to return a search text field and a submit button along with some links to advanced search. At the moment, they are both on separate lines. I would like to put then alongside each other on the same line. Any ideas?
else {
// Show short textfield if appropriate (e.g., in block).
$short ? $length = 18: $length = 30;
$form .= form_textfield('', 'keys', $edit[keys], $length, 200, '') . form_hidden('content_type', $content_type) . form_submit(t('search'));
if ($short) {
$form = form($form, 'post', url('trip_search'));
}
else {
$f_links[] = $content_type ? l(t('advanced search'), 'trip_search/advanced/' . $content_type): l(t('advanced search'), 'trip_search/advanced');
$f_links[] = l(t('search tips'), 'trip_search/help');
$form = form($form. theme('links', $f_links), 'post', url('trip_search'));
}
}
return $form;Many thanks in advance.
Mark