stableversion-3.0
Last change
on this file since 8a8efa8 was
b354002,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el directorio del cord
|
-
Propiedad mode establecida a
100755
|
File size:
1.2 KB
|
Ver. | Línea | |
---|
[b354002] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * @file search-block-form.tpl.php |
---|
| 5 | * Default theme implementation for displaying a search form within a block region. |
---|
| 6 | * |
---|
| 7 | * Available variables: |
---|
| 8 | * - $search_form: The complete search form ready for print. |
---|
| 9 | * - $search: Array of keyed search elements. Can be used to print each form |
---|
| 10 | * element separately. |
---|
| 11 | * |
---|
| 12 | * Default keys within $search: |
---|
| 13 | * - $search['search_block_form']: Text input area wrapped in a div. |
---|
| 14 | * - $search['submit']: Form submit button. |
---|
| 15 | * - $search['hidden']: Hidden form elements. Used to validate forms when submitted. |
---|
| 16 | * |
---|
| 17 | * Since $search is keyed, a direct print of the form element is possible. |
---|
| 18 | * Modules can add to the search form so it is recommended to check for their |
---|
| 19 | * existance before printing. The default keys will always exist. |
---|
| 20 | * |
---|
| 21 | * <?php if (isset($search['extra_field'])): ?> |
---|
| 22 | * <div class="extra-field"> |
---|
| 23 | * <?php print $search['extra_field']; ?> |
---|
| 24 | * </div> |
---|
| 25 | * <?php endif; ?> |
---|
| 26 | * |
---|
| 27 | * To check for all available data within $search, use the code below. |
---|
| 28 | * |
---|
| 29 | * <?php print '<pre>'. check_plain(print_r($search, 1)) .'</pre>'; ?> |
---|
| 30 | * |
---|
| 31 | * @see template_preprocess_search_block_form() |
---|
| 32 | */ |
---|
| 33 | ?> |
---|
| 34 | <div class="container-inline"> |
---|
| 35 | <?php print $search_form; ?> |
---|
| 36 | </div> |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.