Révision b08fce64
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/views/tests/views_test.views_default.inc | ||
---|---|---|
218 | 218 |
|
219 | 219 |
$views[$view->name] = $view; |
220 | 220 |
|
221 |
$view = new view(); |
|
222 |
$view->name = 'test_exposed_remember'; |
|
223 |
$view->description = ''; |
|
224 |
$view->tag = ''; |
|
225 |
$view->base_table = 'node'; |
|
226 |
$view->human_name = 'test_exposed_remember'; |
|
227 |
$view->core = 0; |
|
228 |
$view->api_version = '3.0'; |
|
229 |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
230 |
|
|
231 |
/* Display: Master */ |
|
232 |
$handler = $view->new_display('default', 'Master', 'default'); |
|
233 |
$handler->display->display_options['use_more_always'] = FALSE; |
|
234 |
$handler->display->display_options['access']['type'] = 'none'; |
|
235 |
$handler->display->display_options['cache']['type'] = 'none'; |
|
236 |
$handler->display->display_options['query']['type'] = 'views_query'; |
|
237 |
$handler->display->display_options['exposed_form']['type'] = 'basic'; |
|
238 |
$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE; |
|
239 |
$handler->display->display_options['pager']['type'] = 'none'; |
|
240 |
$handler->display->display_options['style_plugin'] = 'default'; |
|
241 |
$handler->display->display_options['row_plugin'] = 'node'; |
|
242 |
/* Sort criterion: Content: Post date */ |
|
243 |
$handler->display->display_options['sorts']['created']['id'] = 'created'; |
|
244 |
$handler->display->display_options['sorts']['created']['table'] = 'node'; |
|
245 |
$handler->display->display_options['sorts']['created']['field'] = 'created'; |
|
246 |
/* Filter criterion: Content: Type */ |
|
247 |
$handler->display->display_options['filters']['type']['id'] = 'type'; |
|
248 |
$handler->display->display_options['filters']['type']['table'] = 'node'; |
|
249 |
$handler->display->display_options['filters']['type']['field'] = 'type'; |
|
250 |
$handler->display->display_options['filters']['type']['exposed'] = TRUE; |
|
251 |
$handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op'; |
|
252 |
$handler->display->display_options['filters']['type']['expose']['label'] = 'Type'; |
|
253 |
$handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op'; |
|
254 |
$handler->display->display_options['filters']['type']['expose']['identifier'] = 'type'; |
|
255 |
$handler->display->display_options['filters']['type']['expose']['remember'] = TRUE; |
|
256 |
$handler->display->display_options['filters']['type']['expose']['remember_roles'] = array( |
|
257 |
2 => '2', |
|
258 |
); |
|
259 |
|
|
260 |
/* Display: Page */ |
|
261 |
$handler = $view->new_display('page', 'Page', 'page_1'); |
|
262 |
$handler->display->display_options['path'] = 'test_exposed_remember'; |
|
263 |
$translatables['test_exposed_remember'] = array( |
|
264 |
t('Master'), |
|
265 |
t('more'), |
|
266 |
t('Apply'), |
|
267 |
t('Reset'), |
|
268 |
t('Sort by'), |
|
269 |
t('Asc'), |
|
270 |
t('Desc'), |
|
271 |
t('Type'), |
|
272 |
t('Page'), |
|
273 |
); |
|
274 |
|
|
275 |
$views[$view->name] = $view; |
|
276 |
|
|
221 | 277 |
return $views; |
222 | 278 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules