Advertisement
Guest User

View without Custom Query

a guest
Jul 5th, 2010
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.99 KB | None | 0 0
  1. $view = new view;
  2. $view->name = 'huds';
  3. $view->description = 'All HUDs';
  4. $view->tag = 'huds';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('fields', array(
  12. 'title' => array(
  13. 'label' => 'Title',
  14. 'alter' => array(
  15. 'alter_text' => 0,
  16. 'text' => '',
  17. 'make_link' => 0,
  18. 'path' => '',
  19. 'link_class' => '',
  20. 'alt' => '',
  21. 'prefix' => '',
  22. 'suffix' => '',
  23. 'target' => '',
  24. 'help' => '',
  25. 'trim' => 0,
  26. 'max_length' => '15',
  27. 'word_boundary' => 1,
  28. 'ellipsis' => 1,
  29. 'html' => 0,
  30. 'strip_tags' => 0,
  31. ),
  32. 'empty' => '',
  33. 'hide_empty' => 0,
  34. 'empty_zero' => 0,
  35. 'link_to_node' => 1,
  36. 'exclude' => 0,
  37. 'id' => 'title',
  38. 'table' => 'node',
  39. 'field' => 'title',
  40. 'relationship' => 'none',
  41. 'override' => array(
  42. 'button' => 'Override',
  43. ),
  44. ),
  45. ));
  46. $handler->override_option('filters', array(
  47. 'type' => array(
  48. 'operator' => 'in',
  49. 'value' => array(
  50. 'huds' => 'huds',
  51. ),
  52. 'group' => '0',
  53. 'exposed' => FALSE,
  54. 'expose' => array(
  55. 'operator' => FALSE,
  56. 'label' => '',
  57. ),
  58. 'id' => 'type',
  59. 'table' => 'node',
  60. 'field' => 'type',
  61. 'override' => array(
  62. 'button' => 'Override',
  63. ),
  64. 'relationship' => 'none',
  65. ),
  66. 'status' => array(
  67. 'operator' => '=',
  68. 'value' => '1',
  69. 'group' => '0',
  70. 'exposed' => FALSE,
  71. 'expose' => array(
  72. 'operator' => FALSE,
  73. 'label' => '',
  74. ),
  75. 'id' => 'status',
  76. 'table' => 'node',
  77. 'field' => 'status',
  78. 'override' => array(
  79. 'button' => 'Override',
  80. ),
  81. 'relationship' => 'none',
  82. ),
  83. ));
  84. $handler->override_option('access', array(
  85. 'type' => 'none',
  86. ));
  87. $handler->override_option('cache', array(
  88. 'type' => 'none',
  89. ));
  90. $handler->override_option('use_ajax', TRUE);
  91. $handler->override_option('items_per_page', 5);
  92. $handler->override_option('use_pager', 'mini');
  93. $handler->override_option('style_plugin', 'table');
  94. $handler = $view->new_display('page', 'Page', 'page_1');
  95. $handler->override_option('relationships', array(
  96. 'votingapi_cache' => array(
  97. 'label' => 'Vote results',
  98. 'required' => 0,
  99. 'votingapi' => array(
  100. 'value_type' => 'percent',
  101. 'tag' => 'vote',
  102. 'function' => 'average',
  103. ),
  104. 'id' => 'votingapi_cache',
  105. 'table' => 'node',
  106. 'field' => 'votingapi_cache',
  107. 'relationship' => 'none',
  108. ),
  109. 'votingapi_cache_1' => array(
  110. 'label' => 'Vote Count',
  111. 'required' => 0,
  112. 'votingapi' => array(
  113. 'value_type' => '',
  114. 'tag' => 'vote',
  115. 'function' => 'count',
  116. ),
  117. 'id' => 'votingapi_cache_1',
  118. 'table' => 'node',
  119. 'field' => 'votingapi_cache',
  120. 'relationship' => 'none',
  121. ),
  122. ));
  123. $handler->override_option('fields', array(
  124. 'title' => array(
  125. 'label' => 'Title',
  126. 'alter' => array(
  127. 'alter_text' => 0,
  128. 'text' => '',
  129. 'make_link' => 0,
  130. 'path' => '',
  131. 'link_class' => '',
  132. 'alt' => '',
  133. 'prefix' => '',
  134. 'suffix' => '',
  135. 'target' => '',
  136. 'help' => '',
  137. 'trim' => 1,
  138. 'max_length' => '20',
  139. 'word_boundary' => 1,
  140. 'ellipsis' => 1,
  141. 'html' => 0,
  142. 'strip_tags' => 0,
  143. ),
  144. 'empty' => '',
  145. 'hide_empty' => 0,
  146. 'empty_zero' => 0,
  147. 'link_to_node' => 1,
  148. 'exclude' => 0,
  149. 'id' => 'title',
  150. 'table' => 'node',
  151. 'field' => 'title',
  152. 'relationship' => 'none',
  153. 'override' => array(
  154. 'button' => 'Use default',
  155. ),
  156. ),
  157. 'name' => array(
  158. 'label' => 'Author',
  159. 'alter' => array(
  160. 'alter_text' => 0,
  161. 'text' => '',
  162. 'make_link' => 0,
  163. 'path' => '',
  164. 'link_class' => '',
  165. 'alt' => '',
  166. 'prefix' => '',
  167. 'suffix' => '',
  168. 'target' => '',
  169. 'help' => '',
  170. 'trim' => 0,
  171. 'max_length' => '',
  172. 'word_boundary' => 1,
  173. 'ellipsis' => 1,
  174. 'html' => 0,
  175. 'strip_tags' => 0,
  176. ),
  177. 'empty' => '',
  178. 'hide_empty' => 0,
  179. 'empty_zero' => 0,
  180. 'link_to_user' => 1,
  181. 'overwrite_anonymous' => 0,
  182. 'anonymous_text' => '',
  183. 'exclude' => 0,
  184. 'id' => 'name',
  185. 'table' => 'users',
  186. 'field' => 'name',
  187. 'override' => array(
  188. 'button' => 'Use default',
  189. ),
  190. 'relationship' => 'none',
  191. ),
  192. 'value' => array(
  193. 'label' => 'Rating',
  194. 'alter' => array(
  195. 'alter_text' => 0,
  196. 'text' => '',
  197. 'make_link' => 0,
  198. 'path' => '',
  199. 'link_class' => '',
  200. 'alt' => '',
  201. 'prefix' => '',
  202. 'suffix' => '',
  203. 'target' => '',
  204. 'help' => '',
  205. 'trim' => 0,
  206. 'max_length' => '',
  207. 'word_boundary' => 1,
  208. 'ellipsis' => 1,
  209. 'html' => 0,
  210. 'strip_tags' => 0,
  211. ),
  212. 'empty' => '',
  213. 'hide_empty' => 0,
  214. 'empty_zero' => 0,
  215. 'set_precision' => 0,
  216. 'precision' => '0',
  217. 'decimal' => '.',
  218. 'separator' => ',',
  219. 'prefix' => '',
  220. 'suffix' => '',
  221. 'appearance' => 'fivestar_views_value_display_handler',
  222. 'exclude' => 0,
  223. 'id' => 'value',
  224. 'table' => 'votingapi_cache',
  225. 'field' => 'value',
  226. 'relationship' => 'votingapi_cache',
  227. 'override' => array(
  228. 'button' => 'Use default',
  229. ),
  230. ),
  231. 'value_1' => array(
  232. 'label' => 'Votes ',
  233. 'alter' => array(
  234. 'alter_text' => 0,
  235. 'text' => '',
  236. 'make_link' => 0,
  237. 'path' => '',
  238. 'link_class' => '',
  239. 'alt' => '',
  240. 'prefix' => '',
  241. 'suffix' => '',
  242. 'target' => '',
  243. 'help' => '',
  244. 'trim' => 0,
  245. 'max_length' => '',
  246. 'word_boundary' => 1,
  247. 'ellipsis' => 1,
  248. 'html' => 0,
  249. 'strip_tags' => 0,
  250. ),
  251. 'empty' => '',
  252. 'hide_empty' => 0,
  253. 'empty_zero' => 0,
  254. 'set_precision' => 0,
  255. 'precision' => '0',
  256. 'decimal' => '.',
  257. 'separator' => ',',
  258. 'prefix' => '',
  259. 'suffix' => '',
  260. 'appearance' => '',
  261. 'exclude' => 0,
  262. 'id' => 'value_1',
  263. 'table' => 'votingapi_cache',
  264. 'field' => 'value',
  265. 'relationship' => 'votingapi_cache_1',
  266. 'override' => array(
  267. 'button' => 'Use default',
  268. ),
  269. ),
  270. 'count' => array(
  271. 'label' => 'Downloads',
  272. 'alter' => array(
  273. 'alter_text' => 0,
  274. 'text' => '',
  275. 'make_link' => 0,
  276. 'path' => '',
  277. 'link_class' => '',
  278. 'alt' => '',
  279. 'prefix' => '',
  280. 'suffix' => '',
  281. 'target' => '',
  282. 'help' => '',
  283. 'trim' => 0,
  284. 'max_length' => '',
  285. 'word_boundary' => 1,
  286. 'ellipsis' => 1,
  287. 'html' => 0,
  288. 'strip_tags' => 0,
  289. ),
  290. 'empty' => '',
  291. 'hide_empty' => 0,
  292. 'empty_zero' => 0,
  293. 'set_precision' => FALSE,
  294. 'precision' => 0,
  295. 'decimal' => '.',
  296. 'separator' => ',',
  297. 'prefix' => '',
  298. 'suffix' => '',
  299. 'exclude' => 0,
  300. 'id' => 'count',
  301. 'table' => 'pubdlcnt',
  302. 'field' => 'count',
  303. 'override' => array(
  304. 'button' => 'Use default',
  305. ),
  306. 'relationship' => 'none',
  307. ),
  308. 'changed' => array(
  309. 'label' => 'Last Updated',
  310. 'alter' => array(
  311. 'alter_text' => 0,
  312. 'text' => '',
  313. 'make_link' => 0,
  314. 'path' => '',
  315. 'link_class' => '',
  316. 'alt' => '',
  317. 'prefix' => '',
  318. 'suffix' => '',
  319. 'target' => '',
  320. 'help' => '',
  321. 'trim' => 0,
  322. 'max_length' => '',
  323. 'word_boundary' => 1,
  324. 'ellipsis' => 1,
  325. 'html' => 0,
  326. 'strip_tags' => 0,
  327. ),
  328. 'empty' => '',
  329. 'hide_empty' => 0,
  330. 'empty_zero' => 0,
  331. 'date_format' => 'custom',
  332. 'custom_date_format' => 'j M Y',
  333. 'exclude' => 0,
  334. 'id' => 'changed',
  335. 'table' => 'node',
  336. 'field' => 'changed',
  337. 'override' => array(
  338. 'button' => 'Use default',
  339. ),
  340. 'relationship' => 'none',
  341. ),
  342. 'field_hudfile_fid' => array(
  343. 'label' => 'Download Link',
  344. 'alter' => array(
  345. 'alter_text' => 0,
  346. 'text' => '',
  347. 'make_link' => 0,
  348. 'path' => '',
  349. 'link_class' => '',
  350. 'alt' => '',
  351. 'prefix' => '',
  352. 'suffix' => '',
  353. 'target' => '',
  354. 'help' => '',
  355. 'trim' => 0,
  356. 'max_length' => '20',
  357. 'word_boundary' => 1,
  358. 'ellipsis' => 1,
  359. 'html' => 0,
  360. 'strip_tags' => 0,
  361. ),
  362. 'empty' => '',
  363. 'hide_empty' => 0,
  364. 'empty_zero' => 0,
  365. 'link_to_node' => 0,
  366. 'label_type' => 'custom',
  367. 'format' => 'default',
  368. 'multiple' => array(
  369. 'group' => TRUE,
  370. 'multiple_number' => '',
  371. 'multiple_from' => '',
  372. 'multiple_reversed' => FALSE,
  373. ),
  374. 'exclude' => 0,
  375. 'id' => 'field_hudfile_fid',
  376. 'table' => 'node_data_field_hudfile',
  377. 'field' => 'field_hudfile_fid',
  378. 'override' => array(
  379. 'button' => 'Use default',
  380. ),
  381. 'relationship' => 'none',
  382. ),
  383. ));
  384. $handler->override_option('empty', 'No HUDs have been uploaded yet!');
  385. $handler->override_option('empty_format', '1');
  386. $handler->override_option('items_per_page', 25);
  387. $handler->override_option('style_options', array(
  388. 'grouping' => '',
  389. 'override' => 1,
  390. 'sticky' => 0,
  391. 'order' => 'desc',
  392. 'columns' => array(
  393. 'title' => 'title',
  394. 'name' => 'name',
  395. 'value' => 'value',
  396. 'value_1' => 'value_1',
  397. 'changed' => 'changed',
  398. 'field_hudfile_fid' => 'field_hudfile_fid',
  399. 'count' => 'count',
  400. ),
  401. 'info' => array(
  402. 'title' => array(
  403. 'sortable' => 1,
  404. 'separator' => '',
  405. ),
  406. 'name' => array(
  407. 'sortable' => 1,
  408. 'separator' => '',
  409. ),
  410. 'value' => array(
  411. 'sortable' => 1,
  412. 'separator' => '',
  413. ),
  414. 'value_1' => array(
  415. 'sortable' => 1,
  416. 'separator' => '',
  417. ),
  418. 'changed' => array(
  419. 'sortable' => 1,
  420. 'separator' => '',
  421. ),
  422. 'field_hudfile_fid' => array(
  423. 'separator' => '',
  424. ),
  425. 'count' => array(
  426. 'sortable' => 1,
  427. 'separator' => '',
  428. ),
  429. ),
  430. 'default' => 'value',
  431. ));
  432. $handler->override_option('path', 'huds');
  433. $handler->override_option('menu', array(
  434. 'type' => 'normal',
  435. 'title' => 'HUDs',
  436. 'description' => '',
  437. 'weight' => '0',
  438. 'name' => 'primary-links',
  439. ));
  440. $handler->override_option('tab_options', array(
  441. 'type' => 'none',
  442. 'title' => '',
  443. 'description' => '',
  444. 'weight' => 0,
  445. 'name' => 'navigation',
  446. ));
  447. $handler = $view->new_display('block', 'Block', 'block_1');
  448. $handler->override_option('relationships', array(
  449. 'votingapi_cache' => array(
  450. 'label' => 'Vote results',
  451. 'required' => 0,
  452. 'votingapi' => array(
  453. 'value_type' => 'percent',
  454. 'tag' => 'vote',
  455. 'function' => 'average',
  456. ),
  457. 'id' => 'votingapi_cache',
  458. 'table' => 'node',
  459. 'field' => 'votingapi_cache',
  460. 'override' => array(
  461. 'button' => 'Use default',
  462. ),
  463. 'relationship' => 'none',
  464. ),
  465. ));
  466. $handler->override_option('fields', array(
  467. 'title' => array(
  468. 'label' => 'Title',
  469. 'alter' => array(
  470. 'alter_text' => 0,
  471. 'text' => '',
  472. 'make_link' => 0,
  473. 'path' => '',
  474. 'link_class' => '',
  475. 'alt' => '',
  476. 'prefix' => '',
  477. 'suffix' => '',
  478. 'target' => '',
  479. 'help' => '',
  480. 'trim' => 1,
  481. 'max_length' => '18',
  482. 'word_boundary' => 1,
  483. 'ellipsis' => 1,
  484. 'html' => 0,
  485. 'strip_tags' => 0,
  486. ),
  487. 'empty' => '',
  488. 'hide_empty' => 0,
  489. 'empty_zero' => 0,
  490. 'link_to_node' => 1,
  491. 'exclude' => 0,
  492. 'id' => 'title',
  493. 'table' => 'node',
  494. 'field' => 'title',
  495. 'relationship' => 'none',
  496. 'override' => array(
  497. 'button' => 'Use default',
  498. ),
  499. ),
  500. 'value' => array(
  501. 'label' => 'Rating',
  502. 'alter' => array(
  503. 'alter_text' => 0,
  504. 'text' => '',
  505. 'make_link' => 0,
  506. 'path' => '',
  507. 'link_class' => '',
  508. 'alt' => '',
  509. 'prefix' => '',
  510. 'suffix' => '',
  511. 'target' => '',
  512. 'help' => '',
  513. 'trim' => 0,
  514. 'max_length' => '',
  515. 'word_boundary' => 1,
  516. 'ellipsis' => 1,
  517. 'html' => 0,
  518. 'strip_tags' => 0,
  519. ),
  520. 'empty' => 'not rated',
  521. 'hide_empty' => 0,
  522. 'empty_zero' => 1,
  523. 'set_precision' => 0,
  524. 'precision' => '0',
  525. 'decimal' => '.',
  526. 'separator' => ',',
  527. 'prefix' => '',
  528. 'suffix' => '',
  529. 'appearance' => 'fivestar_views_value_text_handler',
  530. 'exclude' => 0,
  531. 'id' => 'value',
  532. 'table' => 'votingapi_cache',
  533. 'field' => 'value',
  534. 'relationship' => 'votingapi_cache',
  535. 'override' => array(
  536. 'button' => 'Use default',
  537. ),
  538. ),
  539. ));
  540. $handler->override_option('title', 'Best Rated');
  541. $handler->override_option('use_pager', '0');
  542. $handler->override_option('style_options', array(
  543. 'grouping' => '',
  544. 'override' => 1,
  545. 'sticky' => 0,
  546. 'order' => 'desc',
  547. 'columns' => array(
  548. 'title' => 'title',
  549. 'value' => 'value',
  550. ),
  551. 'info' => array(
  552. 'title' => array(
  553. 'sortable' => 1,
  554. 'separator' => '',
  555. ),
  556. 'value' => array(
  557. 'sortable' => 1,
  558. 'separator' => '',
  559. ),
  560. ),
  561. 'default' => 'value',
  562. ));
  563. $handler->override_option('block_description', 'Best Rated HUDs');
  564. $handler->override_option('block_caching', -1);
  565. $handler = $view->new_display('block', 'Block 2', 'block_2');
  566. $handler->override_option('fields', array(
  567. 'title' => array(
  568. 'label' => 'Title',
  569. 'alter' => array(
  570. 'alter_text' => 0,
  571. 'text' => '',
  572. 'make_link' => 0,
  573. 'path' => '',
  574. 'link_class' => '',
  575. 'alt' => '',
  576. 'prefix' => '',
  577. 'suffix' => '',
  578. 'target' => '',
  579. 'help' => '',
  580. 'trim' => 1,
  581. 'max_length' => '18',
  582. 'word_boundary' => 1,
  583. 'ellipsis' => 1,
  584. 'html' => 0,
  585. 'strip_tags' => 0,
  586. ),
  587. 'empty' => '',
  588. 'hide_empty' => 0,
  589. 'empty_zero' => 0,
  590. 'link_to_node' => 1,
  591. 'exclude' => 0,
  592. 'id' => 'title',
  593. 'table' => 'node',
  594. 'field' => 'title',
  595. 'relationship' => 'none',
  596. 'override' => array(
  597. 'button' => 'Use default',
  598. ),
  599. ),
  600. 'count' => array(
  601. 'label' => 'Count',
  602. 'alter' => array(
  603. 'alter_text' => 0,
  604. 'text' => '',
  605. 'make_link' => 0,
  606. 'path' => '',
  607. 'link_class' => '',
  608. 'alt' => '',
  609. 'prefix' => '',
  610. 'suffix' => '',
  611. 'target' => '',
  612. 'help' => '',
  613. 'trim' => 0,
  614. 'max_length' => '',
  615. 'word_boundary' => 1,
  616. 'ellipsis' => 1,
  617. 'html' => 0,
  618. 'strip_tags' => 0,
  619. ),
  620. 'empty' => '',
  621. 'hide_empty' => 0,
  622. 'empty_zero' => 0,
  623. 'set_precision' => FALSE,
  624. 'precision' => 0,
  625. 'decimal' => '.',
  626. 'separator' => ',',
  627. 'prefix' => '',
  628. 'suffix' => '',
  629. 'exclude' => 0,
  630. 'id' => 'count',
  631. 'table' => 'pubdlcnt',
  632. 'field' => 'count',
  633. 'override' => array(
  634. 'button' => 'Use default',
  635. ),
  636. 'relationship' => 'none',
  637. ),
  638. ));
  639. $handler->override_option('title', 'Most Downloaded');
  640. $handler->override_option('use_pager', '0');
  641. $handler->override_option('style_options', array(
  642. 'grouping' => '',
  643. 'override' => 1,
  644. 'sticky' => 0,
  645. 'order' => 'desc',
  646. 'columns' => array(
  647. 'title' => 'title',
  648. 'count' => 'count',
  649. ),
  650. 'info' => array(
  651. 'title' => array(
  652. 'sortable' => 1,
  653. 'separator' => '',
  654. ),
  655. 'count' => array(
  656. 'sortable' => 1,
  657. 'separator' => '',
  658. ),
  659. ),
  660. 'default' => 'count',
  661. ));
  662. $handler->override_option('block_description', 'Most Downloaded HUDs');
  663. $handler->override_option('block_caching', -1);
  664. $handler = $view->new_display('block', 'Block', 'block_3');
  665. $handler->override_option('fields', array(
  666. 'count' => array(
  667. 'label' => 'Count',
  668. 'alter' => array(
  669. 'alter_text' => 0,
  670. 'text' => '',
  671. 'make_link' => 0,
  672. 'path' => '',
  673. 'link_class' => '',
  674. 'alt' => '',
  675. 'prefix' => '',
  676. 'suffix' => '',
  677. 'target' => '',
  678. 'help' => '',
  679. 'trim' => 0,
  680. 'max_length' => '',
  681. 'word_boundary' => 1,
  682. 'ellipsis' => 1,
  683. 'html' => 0,
  684. 'strip_tags' => 0,
  685. ),
  686. 'empty' => '',
  687. 'hide_empty' => 0,
  688. 'empty_zero' => 0,
  689. 'set_precision' => FALSE,
  690. 'precision' => 0,
  691. 'decimal' => '.',
  692. 'separator' => ',',
  693. 'prefix' => '',
  694. 'suffix' => '',
  695. 'exclude' => 0,
  696. 'id' => 'count',
  697. 'table' => 'pubdlcnt',
  698. 'field' => 'count',
  699. 'override' => array(
  700. 'button' => 'Use default',
  701. ),
  702. 'relationship' => 'none',
  703. ),
  704. 'nid' => array(
  705. 'label' => 'nid',
  706. 'alter' => array(
  707. 'alter_text' => 0,
  708. 'text' => '',
  709. 'make_link' => 0,
  710. 'path' => '',
  711. 'link_class' => '',
  712. 'alt' => '',
  713. 'prefix' => '',
  714. 'suffix' => '',
  715. 'target' => '',
  716. 'help' => '',
  717. 'trim' => 0,
  718. 'max_length' => '',
  719. 'word_boundary' => 1,
  720. 'ellipsis' => 1,
  721. 'html' => 0,
  722. 'strip_tags' => 0,
  723. ),
  724. 'empty' => '',
  725. 'hide_empty' => 0,
  726. 'empty_zero' => 0,
  727. 'set_precision' => FALSE,
  728. 'precision' => 0,
  729. 'decimal' => '.',
  730. 'separator' => ',',
  731. 'prefix' => '',
  732. 'suffix' => '',
  733. 'exclude' => 0,
  734. 'id' => 'nid',
  735. 'table' => 'pubdlcnt',
  736. 'field' => 'nid',
  737. 'override' => array(
  738. 'button' => 'Use default',
  739. ),
  740. 'relationship' => 'none',
  741. ),
  742. 'title' => array(
  743. 'label' => 'Title',
  744. 'alter' => array(
  745. 'alter_text' => 0,
  746. 'text' => '',
  747. 'make_link' => 0,
  748. 'path' => '',
  749. 'link_class' => '',
  750. 'alt' => '',
  751. 'prefix' => '',
  752. 'suffix' => '',
  753. 'target' => '',
  754. 'help' => '',
  755. 'trim' => 0,
  756. 'max_length' => '',
  757. 'word_boundary' => 1,
  758. 'ellipsis' => 1,
  759. 'html' => 0,
  760. 'strip_tags' => 0,
  761. ),
  762. 'empty' => '',
  763. 'hide_empty' => 0,
  764. 'empty_zero' => 0,
  765. 'link_to_node' => 1,
  766. 'exclude' => 0,
  767. 'id' => 'title',
  768. 'table' => 'node',
  769. 'field' => 'title',
  770. 'override' => array(
  771. 'button' => 'Use default',
  772. ),
  773. 'relationship' => 'none',
  774. ),
  775. ));
  776. $handler->override_option('filters', array(
  777. 'type' => array(
  778. 'operator' => 'in',
  779. 'value' => array(
  780. 'huds' => 'huds',
  781. ),
  782. 'group' => '0',
  783. 'exposed' => FALSE,
  784. 'expose' => array(
  785. 'operator' => FALSE,
  786. 'label' => '',
  787. ),
  788. 'id' => 'type',
  789. 'table' => 'node',
  790. 'field' => 'type',
  791. 'override' => array(
  792. 'button' => 'Override',
  793. ),
  794. 'relationship' => 'none',
  795. ),
  796. 'status' => array(
  797. 'operator' => '=',
  798. 'value' => '1',
  799. 'group' => '0',
  800. 'exposed' => FALSE,
  801. 'expose' => array(
  802. 'operator' => FALSE,
  803. 'label' => '',
  804. ),
  805. 'id' => 'status',
  806. 'table' => 'node',
  807. 'field' => 'status',
  808. 'override' => array(
  809. 'button' => 'Override',
  810. ),
  811. 'relationship' => 'none',
  812. ),
  813. 'count' => array(
  814. 'operator' => '>=',
  815. 'value' => array(
  816. 'value' => '0',
  817. 'min' => '',
  818. 'max' => '',
  819. ),
  820. 'group' => '0',
  821. 'exposed' => FALSE,
  822. 'expose' => array(
  823. 'operator' => FALSE,
  824. 'label' => '',
  825. ),
  826. 'id' => 'count',
  827. 'table' => 'pubdlcnt',
  828. 'field' => 'count',
  829. 'override' => array(
  830. 'button' => 'Use default',
  831. ),
  832. 'relationship' => 'none',
  833. ),
  834. ));
  835. $handler->override_option('distinct', 0);
  836. $handler->override_option('style_options', array(
  837. 'grouping' => '',
  838. 'override' => 1,
  839. 'sticky' => 0,
  840. 'order' => 'asc',
  841. 'columns' => array(
  842. 'count' => 'count',
  843. 'nid' => 'nid',
  844. ),
  845. 'info' => array(
  846. 'count' => array(
  847. 'sortable' => 1,
  848. 'separator' => '',
  849. ),
  850. 'nid' => array(
  851. 'sortable' => 1,
  852. 'separator' => '',
  853. ),
  854. ),
  855. 'default' => '-1',
  856. ));
  857. $handler->override_option('block_description', '');
  858. $handler->override_option('block_caching', -1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement