Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/search/search_result.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
/** |
|
4 |
* @file |
|
5 |
*/ |
|
6 |
|
|
3 | 7 |
if (module_exists('search')) { |
4 | 8 |
/** |
5 | 9 |
* Plugins are described by creating a $plugin array which will be used |
... | ... | |
42 | 46 |
$keys = $context->data; |
43 | 47 |
} |
44 | 48 |
|
45 |
$conditions = NULL;
|
|
49 |
$conditions = NULL; |
|
46 | 50 |
if (isset($info['conditions_callback']) && function_exists($info['conditions_callback'])) { |
47 | 51 |
// Build an optional array of more search conditions. |
48 | 52 |
$conditions = $info['conditions_callback']($keys); |
... | ... | |
59 | 63 |
} |
60 | 64 |
|
61 | 65 |
// Build the content type block. |
62 |
$block = new stdClass(); |
|
63 |
$block->module = 'search';
|
|
64 |
$block->delta = 'result';
|
|
66 |
$block = new stdClass();
|
|
67 |
$block->module = 'search'; |
|
68 |
$block->delta = 'result'; |
|
65 | 69 |
|
66 | 70 |
$results = ''; |
67 | 71 |
|
... | ... | |
160 | 164 |
'#title' => t('Display text if no search keywords were submitted'), |
161 | 165 |
); |
162 | 166 |
|
163 |
|
|
164 | 167 |
$form['no_key_title'] = array( |
165 | 168 |
'#title' => t('Title'), |
166 | 169 |
'#type' => 'textfield', |
Formats disponibles : Unified diff
Weekly update of contrib modules