pastebin

Paste Search Dynamic
Recent pastes
node admin content
  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  * Default view for node content administration.
  6.  */
  7.  
  8. $view = new view();
  9. $view->name = 'admin_views_node';
  10. $view->description = 'Find and manage content.';
  11. $view->tag = 'admin';
  12. $view->base_table = 'node';
  13. $view->human_name = 'Administration: Nodes';
  14. $view->core = 0;
  15. $view->api_version = '3.0';
  16. $view->disabled = false; /* Edit this to true to make a default view disabled initially */
  17.  
  18. /* Display: Defaults */
  19. $handler = $view->new_display('default', 'Defaults', 'default');
  20. $handler->display->display_options['title'] = 'Content';
  21. $handler->display->display_options['css_class'] = 'admin-views-view';
  22. $handler->display->display_options['use_ajax'] = true;
  23. $handler->display->display_options['use_more_always'] = false;
  24. $handler->display->display_options['group_by'] = true;
  25. $handler->display->display_options['access']['type'] = 'perm';
  26. $handler->display->display_options['access']['perm'] = 'access administration pages';
  27. $handler->display->display_options['cache']['type'] = 'none';
  28. $handler->display->display_options['query']['type'] = 'views_query';
  29. $handler->display->display_options['query']['options']['distinct'] = true;
  30. $handler->display->display_options['query']['options']['query_comment'] = false;
  31. $handler->display->display_options['exposed_form']['type'] = 'basic';
  32. $handler->display->display_options['exposed_form']['options']['reset_button'] = true;
  33. $handler->display->display_options['pager']['type'] = 'full';
  34. $handler->display->display_options['pager']['options']['items_per_page'] = 50;
  35. $handler->display->display_options['style_plugin'] = 'table';
  36. $handler->display->display_options['style_options']['columns'] = array(
  37.   'views_bulk_operations' => 'views_bulk_operations',
  38.   'title' => 'title',
  39.   'timestamp' => 'title',
  40.   'type' => 'type',
  41.   'name' => 'name',
  42.   'status' => 'status',
  43.   'changed' => 'changed',
  44.   'edit_node' => 'edit_node',
  45.   'delete_node' => 'edit_node',
  46. );
  47. $handler->display->display_options['style_options']['default'] = 'changed';
  48. $handler->display->display_options['style_options']['info'] = array(
  49.   'views_bulk_operations' => array(
  50.     'align' => '',
  51.     'separator' => '',
  52.     'empty_column' => 0,
  53.   ),
  54.   'title' => array(
  55.     'sortable' => 1,
  56.     'default_sort_order' => 'asc',
  57.     'align' => '',
  58.     'separator' => '&nbsp;',
  59.     'empty_column' => 0,
  60.   ),
  61.   'timestamp' => array(
  62.     'align' => '',
  63.     'separator' => '',
  64.     'empty_column' => 0,
  65.   ),
  66.   'type' => array(
  67.     'sortable' => 1,
  68.     'default_sort_order' => 'asc',
  69.     'align' => '',
  70.     'separator' => '',
  71.     'empty_column' => 0,
  72.   ),
  73.   'name' => array(
  74.     'sortable' => 1,
  75.     'default_sort_order' => 'asc',
  76.     'align' => '',
  77.     'separator' => '',
  78.     'empty_column' => 0,
  79.   ),
  80.   'status' => array(
  81.     'sortable' => 1,
  82.     'default_sort_order' => 'desc',
  83.     'align' => '',
  84.     'separator' => '',
  85.     'empty_column' => 0,
  86.   ),
  87.   'changed' => array(
  88.     'sortable' => 1,
  89.     'default_sort_order' => 'desc',
  90.     'align' => '',
  91.     'separator' => '',
  92.     'empty_column' => 0,
  93.   ),
  94.   'edit_node' => array(
  95.     'align' => '',
  96.     'separator' => '&emsp;',
  97.     'empty_column' => 0,
  98.   ),
  99.   'delete_node' => array(
  100.     'align' => '',
  101.     'separator' => '',
  102.     'empty_column' => 0,
  103.   ),
  104. );
  105. $handler->display->display_options['style_options']['sticky'] = true;
  106. $handler->display->display_options['style_options']['empty_table'] = true;
  107. /* No results behavior: Global: Unfiltered text */
  108. $handler->display->display_options['empty']['area_text_custom']['id'] = 'area_text_custom';
  109. $handler->display->display_options['empty']['area_text_custom']['table'] = 'views';
  110. $handler->display->display_options['empty']['area_text_custom']['field'] = 'area_text_custom';
  111. $handler->display->display_options['empty']['area_text_custom']['empty'] = true;
  112. $handler->display->display_options['empty']['area_text_custom']['content'] = 'No content available.';
  113. /* Relationship: Content: Author */
  114. $handler->display->display_options['relationships']['uid']['id'] = 'uid';
  115. $handler->display->display_options['relationships']['uid']['table'] = 'node';
  116. $handler->display->display_options['relationships']['uid']['field'] = 'uid';
  117. /* Relationship: Content: Taxonomy terms on node */
  118. if (module_exists('taxonomy')) {
  119.   $handler->display->display_options['relationships']['term_node_tid']['id'] = 'term_node_tid';
  120.   $handler->display->display_options['relationships']['term_node_tid']['table'] = 'node';
  121.   $handler->display->display_options['relationships']['term_node_tid']['field'] = 'term_node_tid';
  122.   $handler->display->display_options['relationships']['term_node_tid']['vocabularies'] = array(
  123.     'forums' => 0,
  124.     'tags' => 0,
  125.   );
  126. }
  127. /* Field: Bulk operations: Content */
  128. $handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
  129. $handler->display->display_options['fields']['views_bulk_operations']['table'] = 'node';
  130. $handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
  131. $handler->display->display_options['fields']['views_bulk_operations']['label'] = '';
  132. $handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = false;
  133. $handler->display->display_options['fields']['views_bulk_operations']['hide_alter_empty'] = false;
  134. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['display_type'] = '0';
  135. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['enable_select_all_pages'] = 1;
  136. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['force_single'] = 0;
  137. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['entity_load_capacity'] = '10';
  138. $handler->display->display_options['fields']['views_bulk_operations']['vbo_operations'] = array(
  139.   'action::node_assign_owner_action' => array(
  140.     'selected' => 1,
  141.     'skip_confirmation' => 1,
  142.     'override_label' => 1,
  143.     'label' => 'Change author',
  144.     'postpone_processing' => 0,
  145.   ),
  146.   'action::views_bulk_operations_delete_item' => array(
  147.     'selected' => 1,
  148.     'skip_confirmation' => 0,
  149.     'override_label' => 1,
  150.     'label' => 'Delete',
  151.     'postpone_processing' => 0,
  152.   ),
  153.   'action::views_bulk_operations_modify_action' => array(
  154.     'selected' => 1,
  155.     'skip_confirmation' => 1,
  156.     'override_label' => 1,
  157.     'label' => 'Change value',
  158.     'settings' => array(
  159.       'show_all_tokens' => 1,
  160.       'display_values' => array(
  161.         '_all_' => '_all_',
  162.       ),
  163.     ),
  164.     'postpone_processing' => 0,
  165.   ),
  166.   'action::system_message_action' => array(
  167.     'selected' => 0,
  168.     'skip_confirmation' => 0,
  169.     'override_label' => 0,
  170.     'label' => '',
  171.     'postpone_processing' => 0,
  172.   ),
  173.   'action::views_bulk_operations_script_action' => array(
  174.     'selected' => 0,
  175.     'skip_confirmation' => 0,
  176.     'override_label' => 0,
  177.     'label' => '',
  178.     'postpone_processing' => 0,
  179.   ),
  180.   'action::node_make_sticky_action' => array(
  181.     'selected' => 1,
  182.     'skip_confirmation' => 1,
  183.     'override_label' => 1,
  184.     'label' => 'Stick',
  185.     'postpone_processing' => 0,
  186.   ),
  187.   'action::node_make_unsticky_action' => array(
  188.     'selected' => 1,
  189.     'skip_confirmation' => 1,
  190.     'override_label' => 1,
  191.     'label' => 'Unstick',
  192.     'postpone_processing' => 0,
  193.   ),
  194.   'action::views_bulk_operations_argument_selector_action' => array(
  195.     'selected' => 0,
  196.     'skip_confirmation' => 0,
  197.     'override_label' => 0,
  198.     'label' => '',
  199.     'settings' => array(
  200.       'url' => '',
  201.     ),
  202.   ),
  203.   'action::node_promote_action' => array(
  204.     'selected' => 1,
  205.     'skip_confirmation' => 1,
  206.     'override_label' => 1,
  207.     'label' => 'Promote to front page',
  208.     'postpone_processing' => 0,
  209.   ),
  210.   'action::node_publish_action' => array(
  211.     'selected' => 1,
  212.     'skip_confirmation' => 1,
  213.     'override_label' => 1,
  214.     'label' => 'Publish',
  215.     'postpone_processing' => 0,
  216.   ),
  217.   'action::system_goto_action' => array(
  218.     'selected' => 0,
  219.     'skip_confirmation' => 0,
  220.     'override_label' => 0,
  221.     'label' => '',
  222.     'postpone_processing' => 0,
  223.   ),
  224.   'action::node_unpromote_action' => array(
  225.     'selected' => 1,
  226.     'skip_confirmation' => 1,
  227.     'override_label' => 1,
  228.     'label' => 'Demote from front page',
  229.     'postpone_processing' => 0,
  230.   ),
  231.   'action::node_save_action' => array(
  232.     'selected' => 0,
  233.     'skip_confirmation' => 0,
  234.     'override_label' => 0,
  235.     'label' => '',
  236.     'postpone_processing' => 0,
  237.   ),
  238.   'action::system_send_email_action' => array(
  239.     'selected' => 0,
  240.     'skip_confirmation' => 0,
  241.     'override_label' => 0,
  242.     'label' => '',
  243.     'postpone_processing' => 0,
  244.   ),
  245.   'action::node_unpublish_action' => array(
  246.     'selected' => 1,
  247.     'skip_confirmation' => 1,
  248.     'override_label' => 1,
  249.     'label' => 'Unpublish',
  250.     'postpone_processing' => 0,
  251.   ),
  252.   'action::node_unpublish_by_keyword_action' => array(
  253.     'selected' => 0,
  254.     'skip_confirmation' => 0,
  255.     'override_label' => 0,
  256.     'label' => '',
  257.     'postpone_processing' => 0,
  258.   ),
  259. );
  260. /* Field: Content: Title */
  261. $handler->display->display_options['fields']['title']['id'] = 'title';
  262. $handler->display->display_options['fields']['title']['table'] = 'node';
  263. $handler->display->display_options['fields']['title']['field'] = 'title';
  264. /* Field: Content: Has new content */
  265. $handler->display->display_options['fields']['timestamp']['id'] = 'timestamp';
  266. $handler->display->display_options['fields']['timestamp']['table'] = 'history';
  267. $handler->display->display_options['fields']['timestamp']['field'] = 'timestamp';
  268. $handler->display->display_options['fields']['timestamp']['label'] = '';
  269. $handler->display->display_options['fields']['timestamp']['element_label_colon'] = false;
  270. /* Field: Content: Type */
  271. $handler->display->display_options['fields']['type']['id'] = 'type';
  272. $handler->display->display_options['fields']['type']['table'] = 'node';
  273. $handler->display->display_options['fields']['type']['field'] = 'type';
  274. /* Field: User: Name */
  275. $handler->display->display_options['fields']['name']['id'] = 'name';
  276. $handler->display->display_options['fields']['name']['table'] = 'users';
  277. $handler->display->display_options['fields']['name']['field'] = 'name';
  278. $handler->display->display_options['fields']['name']['relationship'] = 'uid';
  279. $handler->display->display_options['fields']['name']['label'] = 'Author';
  280. $handler->display->display_options['fields']['name']['hide_alter_empty'] = false;
  281. /* Field: Content: Published */
  282. $handler->display->display_options['fields']['status']['id'] = 'status';
  283. $handler->display->display_options['fields']['status']['table'] = 'node';
  284. $handler->display->display_options['fields']['status']['field'] = 'status';
  285. $handler->display->display_options['fields']['status']['not'] = 0;
  286. /* Field: Content: Updated date */
  287. $handler->display->display_options['fields']['changed']['id'] = 'changed';
  288. $handler->display->display_options['fields']['changed']['table'] = 'node';
  289. $handler->display->display_options['fields']['changed']['field'] = 'changed';
  290. $handler->display->display_options['fields']['changed']['label'] = 'Updated';
  291. $handler->display->display_options['fields']['changed']['date_format'] = 'short';
  292. /* Field: Content: Edit link */
  293. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  294. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  295. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  296. $handler->display->display_options['fields']['edit_node']['label'] = 'Operations';
  297. /* Field: Content: Delete link */
  298. $handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
  299. $handler->display->display_options['fields']['delete_node']['table'] = 'views_entity_node';
  300. $handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
  301. $handler->display->display_options['fields']['delete_node']['label'] = '';
  302. /* Filter criterion: Content: Title */
  303. $handler->display->display_options['filters']['title']['id'] = 'title';
  304. $handler->display->display_options['filters']['title']['table'] = 'node';
  305. $handler->display->display_options['filters']['title']['field'] = 'title';
  306. $handler->display->display_options['filters']['title']['operator'] = 'contains';
  307. $handler->display->display_options['filters']['title']['exposed'] = true;
  308. $handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
  309. $handler->display->display_options['filters']['title']['expose']['label'] = 'Title';
  310. $handler->display->display_options['filters']['title']['expose']['use_operator'] = true;
  311. $handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
  312. $handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
  313. $handler->display->display_options['filters']['title']['expose']['remember'] = true;
  314. /* Filter criterion: Content: Type */
  315. $handler->display->display_options['filters']['type']['id'] = 'type';
  316. $handler->display->display_options['filters']['type']['table'] = 'node';
  317. $handler->display->display_options['filters']['type']['field'] = 'type';
  318. $handler->display->display_options['filters']['type']['exposed'] = true;
  319. $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
  320. $handler->display->display_options['filters']['type']['expose']['label'] = 'Type';
  321. $handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
  322. $handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
  323. $handler->display->display_options['filters']['type']['expose']['remember'] = true;
  324. /* Filter criterion: User: Name */
  325. $handler->display->display_options['filters']['uid']['id'] = 'uid';
  326. $handler->display->display_options['filters']['uid']['table'] = 'users';
  327. $handler->display->display_options['filters']['uid']['field'] = 'uid';
  328. $handler->display->display_options['filters']['uid']['relationship'] = 'uid';
  329. $handler->display->display_options['filters']['uid']['value'] = '';
  330. $handler->display->display_options['filters']['uid']['exposed'] = true;
  331. $handler->display->display_options['filters']['uid']['expose']['operator_id'] = 'uid_op';
  332. $handler->display->display_options['filters']['uid']['expose']['label'] = 'Author';
  333. $handler->display->display_options['filters']['uid']['expose']['operator'] = 'uid_op';
  334. $handler->display->display_options['filters']['uid']['expose']['identifier'] = 'author';
  335. $handler->display->display_options['filters']['uid']['expose']['remember'] = true;
  336. /* Filter criterion: Content: Published */
  337. $handler->display->display_options['filters']['status']['id'] = 'status';
  338. $handler->display->display_options['filters']['status']['table'] = 'node';
  339. $handler->display->display_options['filters']['status']['field'] = 'status';
  340. $handler->display->display_options['filters']['status']['value'] = 'All';
  341. $handler->display->display_options['filters']['status']['exposed'] = true;
  342. $handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
  343. $handler->display->display_options['filters']['status']['expose']['label'] = 'Published';
  344. $handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
  345. $handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
  346. $handler->display->display_options['filters']['status']['expose']['remember'] = true;
  347. if (module_exists('taxonomy')) {
  348. /* Filter criterion: Taxonomy term: Vocabulary */
  349.   $handler->display->display_options['filters']['vid']['id'] = 'vid';
  350.   $handler->display->display_options['filters']['vid']['table'] = 'taxonomy_term_data';
  351.   $handler->display->display_options['filters']['vid']['field'] = 'vid';
  352.   $handler->display->display_options['filters']['vid']['relationship'] = 'term_node_tid';
  353.   $handler->display->display_options['filters']['vid']['exposed'] = true;
  354.   $handler->display->display_options['filters']['vid']['expose']['operator_id'] = 'vid_op';
  355.   $handler->display->display_options['filters']['vid']['expose']['label'] = 'Vocabulary';
  356.   $handler->display->display_options['filters']['vid']['expose']['operator'] = 'vid_op';
  357.   $handler->display->display_options['filters']['vid']['expose']['identifier'] = 'vid';
  358.   $handler->display->display_options['filters']['vid']['expose']['remember'] = true;
  359. }
  360. if (module_exists('domain')) {
  361.   /* Filter criterion: Domain Access: Domain ID */
  362.   $handler->display->display_options['filters']['gid']['id'] = 'gid';
  363.   $handler->display->display_options['filters']['gid']['table'] = 'domain_access';
  364.   $handler->display->display_options['filters']['gid']['field'] = 'gid';
  365.   $handler->display->display_options['filters']['gid']['exposed'] = true;
  366.   $handler->display->display_options['filters']['gid']['expose']['operator_id'] = 'gid_op';
  367.   $handler->display->display_options['filters']['gid']['expose']['label'] = 'Domain';
  368.   $handler->display->display_options['filters']['gid']['expose']['operator'] = 'gid_op';
  369.   $handler->display->display_options['filters']['gid']['expose']['identifier'] = 'gid';
  370.   $handler->display->display_options['filters']['gid']['expose']['remember'] = true;
  371. }
  372.  
  373. /* Display: System */
  374. $handler = $view->new_display('system', 'System', 'system_1');
  375. $handler->display->display_options['defaults']['hide_admin_links'] = false;
  376. $handler->display->display_options['hide_admin_links'] = true;
  377. $handler->display->display_options['defaults']['access'] = false;
  378. $handler->display->display_options['path'] = 'admin/content';
  379. $translatables['admin_views_node'] = array(
  380.   t('Defaults'),
  381.   t('Content'),
  382.   t('more'),
  383.   t('Apply'),
  384.   t('Reset'),
  385.   t('Sort by'),
  386.   t('Asc'),
  387.   t('Desc'),
  388.   t('Items per page'),
  389.   t('- All -'),
  390.   t('Offset'),
  391.   t('« first'),
  392.   t('‹ previous'),
  393.   t('next ›'),
  394.   t('last »'),
  395.   t('No content available.'),
  396.   t('author'),
  397.   t('term'),
  398.   t('- Choose an operation -'),
  399.   t('Change author'),
  400.   t('Delete'),
  401.   t('Change value'),
  402.   t('Stick'),
  403.   t('Unstick'),
  404.   t('Promote to front page'),
  405.   t('Publish'),
  406.   t('Demote from front page'),
  407.   t('Unpublish'),
  408.   t('Title'),
  409.   t('Type'),
  410.   t('Author'),
  411.   t('Published'),
  412.   t('Updated'),
  413.   t('Operations'),
  414.   t('Vocabulary'),
  415.   t('Domain'),
  416.   t('System'),
  417. );
Parsed in 0.428 seconds