Projet

Général

Profil

Révision 3acd948f

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/tests/views_test.views_default.inc
1

  
1 2
<?php
2 3

  
3 4
/**
......
274 275

  
275 276
  $views[$view->name] = $view;
276 277

  
278
  $view = new view();
279
  $view->name = 'test_ajax_view';
280
  $view->description = '';
281
  $view->tag = '';
282
  $view->base_table = 'node';
283
  $view->human_name = '';
284
  $view->core = 0;
285
  $view->api_version = '3.0';
286
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
287

  
288
  /* Display: Master */
289
  $handler = $view->new_display('default', 'Master', 'default');
290
  $handler->display->display_options['use_ajax'] = TRUE;
291
  $handler->display->display_options['use_more_always'] = FALSE;
292
  $handler->display->display_options['access']['type'] = 'none';
293
  $handler->display->display_options['cache']['type'] = 'none';
294
  $handler->display->display_options['query']['type'] = 'views_query';
295
  $handler->display->display_options['exposed_form']['type'] = 'basic';
296
  $handler->display->display_options['pager']['type'] = 'none';
297
  $handler->display->display_options['style_plugin'] = 'default';
298
  $handler->display->display_options['row_plugin'] = 'node';
299

  
300
  /* Display: Page */
301
  $handler = $view->new_display('page', 'Page', 'page_1');
302
  $handler->display->display_options['path'] = 'test_ajax_view';
303

  
304
  $views[$view->name] = $view;
305

  
306
  $view = new view();
307
  $view->name = 'test_noajax_view';
308
  $view->description = '';
309
  $view->tag = '';
310
  $view->base_table = 'node';
311
  $view->human_name = '';
312
  $view->core = 0;
313
  $view->api_version = '3.0';
314
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
315

  
316
  /* Display: Master */
317
  $handler = $view->new_display('default', 'Master', 'default');
318
  $handler->display->display_options['use_ajax'] = FALSE;
319
  $handler->display->display_options['use_more_always'] = FALSE;
320
  $handler->display->display_options['access']['type'] = 'none';
321
  $handler->display->display_options['cache']['type'] = 'none';
322
  $handler->display->display_options['query']['type'] = 'views_query';
323
  $handler->display->display_options['exposed_form']['type'] = 'basic';
324
  $handler->display->display_options['pager']['type'] = 'none';
325
  $handler->display->display_options['style_plugin'] = 'default';
326
  $handler->display->display_options['row_plugin'] = 'node';
327

  
328
  $views[$view->name] = $view;
329

  
277 330
  return $views;
278 331
}

Formats disponibles : Unified diff