tripal_organism.views_default.inc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. <?php
  2. /**
  3. * @file
  4. * Organism default views
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. *
  9. * @ingroup tripal_legacy_organism
  10. */
  11. function tripal_organism_views_default_views() {
  12. $views = [];
  13. // User View ("Search Biological Content")
  14. // Remember, if you change the name/path of this view,
  15. // you also want to change it's description in tripal_organism_search_biological_data_views()
  16. $view = tripal_organism_defaultvalue_user_organisms();
  17. $view = tripal_make_view_compatible_with_external($view);
  18. $views[$view->name] = $view;
  19. // Admin view
  20. $view = tripal_organism_admin_defaultview_organisms();
  21. $view = tripal_make_view_compatible_with_external($view);
  22. $views[$view->name] = $view;
  23. return $views;
  24. }
  25. /**
  26. * Defines the organism user search default view.
  27. *
  28. * @ingroup tripal_legacy_organism
  29. */
  30. function tripal_organism_defaultvalue_user_organisms() {
  31. $view = new view();
  32. $view->name = 'tripal_organism_user_organisms';
  33. $view->description = 'Allows users to search organism data';
  34. $view->tag = 'tripal search';
  35. $view->base_table = 'organism';
  36. $view->human_name = 'Organism User Search';
  37. $view->core = 0;
  38. $view->api_version = '3.0';
  39. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  40. /* Display: Defaults */
  41. $handler = $view->new_display('default', 'Defaults', 'default');
  42. $handler->display->display_options['title'] = 'Organisms';
  43. $handler->display->display_options['use_more_always'] = FALSE;
  44. $handler->display->display_options['access']['type'] = 'perm';
  45. $handler->display->display_options['access']['perm'] = 'access chado_organism content';
  46. $handler->display->display_options['cache']['type'] = 'none';
  47. $handler->display->display_options['query']['type'] = 'views_query';
  48. $handler->display->display_options['exposed_form']['type'] = 'basic';
  49. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter';
  50. $handler->display->display_options['pager']['type'] = 'full';
  51. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  52. $handler->display->display_options['pager']['options']['offset'] = '0';
  53. $handler->display->display_options['pager']['options']['id'] = '0';
  54. $handler->display->display_options['pager']['options']['quantity'] = '9';
  55. $handler->display->display_options['style_plugin'] = 'table';
  56. $handler->display->display_options['style_options']['grouping'] = '';
  57. $handler->display->display_options['style_options']['columns'] = [
  58. 'common_name' => 'common_name',
  59. 'genus' => 'genus',
  60. 'species' => 'species',
  61. 'abbreviation' => 'abbreviation',
  62. ];
  63. $handler->display->display_options['style_options']['default'] = '-1';
  64. $handler->display->display_options['style_options']['info'] = [
  65. 'common_name' => [
  66. 'sortable' => 1,
  67. 'separator' => '',
  68. ],
  69. 'genus' => [
  70. 'sortable' => 1,
  71. 'separator' => '',
  72. ],
  73. 'species' => [
  74. 'sortable' => 1,
  75. 'separator' => '',
  76. ],
  77. 'abbreviation' => [
  78. 'sortable' => 1,
  79. 'separator' => '',
  80. ],
  81. ];
  82. /* No results behavior: Global: Text area */
  83. $handler->display->display_options['empty']['text']['id'] = 'area';
  84. $handler->display->display_options['empty']['text']['table'] = 'views';
  85. $handler->display->display_options['empty']['text']['field'] = 'area';
  86. $handler->display->display_options['empty']['text']['content'] = 'No organisms matched the supplied criteria.';
  87. $handler->display->display_options['empty']['text']['format'] = '1';
  88. /* Relationship: Organism: Organism => Node */
  89. $handler->display->display_options['relationships']['organism_id']['id'] = 'organism_id';
  90. $handler->display->display_options['relationships']['organism_id']['table'] = 'chado_organism';
  91. $handler->display->display_options['relationships']['organism_id']['field'] = 'organism_id';
  92. /* Field: Content: Nid */
  93. $handler->display->display_options['fields']['nid']['id'] = 'nid';
  94. $handler->display->display_options['fields']['nid']['table'] = 'node';
  95. $handler->display->display_options['fields']['nid']['field'] = 'nid';
  96. $handler->display->display_options['fields']['nid']['exclude'] = TRUE;
  97. /* Field: Node URL */
  98. $handler->display->display_options['fields']['nid_1']['id'] = 'nid_1';
  99. $handler->display->display_options['fields']['nid_1']['table'] = 'node';
  100. $handler->display->display_options['fields']['nid_1']['field'] = 'nid';
  101. $handler->display->display_options['fields']['nid_1']['ui_name'] = 'Node URL';
  102. $handler->display->display_options['fields']['nid_1']['label'] = '';
  103. $handler->display->display_options['fields']['nid_1']['exclude'] = TRUE;
  104. $handler->display->display_options['fields']['nid_1']['alter']['alter_text'] = TRUE;
  105. $handler->display->display_options['fields']['nid_1']['alter']['text'] = 'node/[nid]';
  106. $handler->display->display_options['fields']['nid_1']['element_label_colon'] = FALSE;
  107. /* Field: Chado Organism: Genus */
  108. $handler->display->display_options['fields']['genus']['id'] = 'genus';
  109. $handler->display->display_options['fields']['genus']['table'] = 'organism';
  110. $handler->display->display_options['fields']['genus']['field'] = 'genus';
  111. /* Field: Chado Organism: Species */
  112. $handler->display->display_options['fields']['species']['id'] = 'species';
  113. $handler->display->display_options['fields']['species']['table'] = 'organism';
  114. $handler->display->display_options['fields']['species']['field'] = 'species';
  115. /* Field: Global: Custom text */
  116. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  117. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  118. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  119. $handler->display->display_options['fields']['nothing']['label'] = 'Scientific Name';
  120. $handler->display->display_options['fields']['nothing']['alter']['text'] = '<i>[genus] [species]</i>';
  121. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  122. $handler->display->display_options['fields']['nothing']['alter']['path'] = '[nid_1]';
  123. /* Field: Chado Organism: Common Name */
  124. $handler->display->display_options['fields']['common_name']['id'] = 'common_name';
  125. $handler->display->display_options['fields']['common_name']['table'] = 'organism';
  126. $handler->display->display_options['fields']['common_name']['field'] = 'common_name';
  127. $handler->display->display_options['fields']['common_name']['alter']['path'] = '[nid_1]';
  128. /* Field: Chado Organism: Abbreviation */
  129. $handler->display->display_options['fields']['abbreviation']['id'] = 'abbreviation';
  130. $handler->display->display_options['fields']['abbreviation']['table'] = 'organism';
  131. $handler->display->display_options['fields']['abbreviation']['field'] = 'abbreviation';
  132. /* Sort criterion: Chado Organism: Genus */
  133. $handler->display->display_options['sorts']['genus']['id'] = 'genus';
  134. $handler->display->display_options['sorts']['genus']['table'] = 'organism';
  135. $handler->display->display_options['sorts']['genus']['field'] = 'genus';
  136. /* Sort criterion: Chado Organism: Species */
  137. $handler->display->display_options['sorts']['species']['id'] = 'species';
  138. $handler->display->display_options['sorts']['species']['table'] = 'organism';
  139. $handler->display->display_options['sorts']['species']['field'] = 'species';
  140. /* Filter criterion: Chado Organism: Common Name */
  141. $handler->display->display_options['filters']['common_name']['id'] = 'common_name';
  142. $handler->display->display_options['filters']['common_name']['table'] = 'organism';
  143. $handler->display->display_options['filters']['common_name']['field'] = 'common_name';
  144. $handler->display->display_options['filters']['common_name']['operator'] = 'contains';
  145. $handler->display->display_options['filters']['common_name']['exposed'] = TRUE;
  146. $handler->display->display_options['filters']['common_name']['expose']['operator_id'] = '';
  147. $handler->display->display_options['filters']['common_name']['expose']['label'] = 'Common Name Contains';
  148. $handler->display->display_options['filters']['common_name']['expose']['identifier'] = 'common_name';
  149. $handler->display->display_options['filters']['common_name']['expose']['remember_roles'] = [
  150. 2 => '2',
  151. 1 => 0,
  152. 3 => 0,
  153. ];
  154. /* Filter criterion: Chado Organism: Genus */
  155. $handler->display->display_options['filters']['genus']['id'] = 'genus';
  156. $handler->display->display_options['filters']['genus']['table'] = 'organism';
  157. $handler->display->display_options['filters']['genus']['field'] = 'genus';
  158. $handler->display->display_options['filters']['genus']['exposed'] = TRUE;
  159. $handler->display->display_options['filters']['genus']['expose']['operator_id'] = 'genus_op';
  160. $handler->display->display_options['filters']['genus']['expose']['label'] = 'Genus';
  161. $handler->display->display_options['filters']['genus']['expose']['operator'] = 'genus_op';
  162. $handler->display->display_options['filters']['genus']['expose']['identifier'] = 'genus';
  163. $handler->display->display_options['filters']['genus']['expose']['remember_roles'] = [
  164. 2 => '2',
  165. 1 => 0,
  166. 3 => 0,
  167. ];
  168. /* Filter criterion: Chado Organism: Species */
  169. $handler->display->display_options['filters']['species']['id'] = 'species';
  170. $handler->display->display_options['filters']['species']['table'] = 'organism';
  171. $handler->display->display_options['filters']['species']['field'] = 'species';
  172. $handler->display->display_options['filters']['species']['exposed'] = TRUE;
  173. $handler->display->display_options['filters']['species']['expose']['operator_id'] = 'species_op';
  174. $handler->display->display_options['filters']['species']['expose']['label'] = 'Species';
  175. $handler->display->display_options['filters']['species']['expose']['operator'] = 'species_op';
  176. $handler->display->display_options['filters']['species']['expose']['identifier'] = 'species';
  177. $handler->display->display_options['filters']['species']['expose']['remember_roles'] = [
  178. 2 => '2',
  179. 1 => 0,
  180. 3 => 0,
  181. ];
  182. /* Display: Page */
  183. $handler = $view->new_display('page', 'Page', 'page_1');
  184. $handler->display->display_options['path'] = 'chado/organism';
  185. $handler->display->display_options['menu']['type'] = 'normal';
  186. $handler->display->display_options['menu']['title'] = 'Organisms';
  187. $handler->display->display_options['menu']['description'] = 'Any living biological entity, such as an animal, plant, fungus, or bacterium.';
  188. $handler->display->display_options['menu']['weight'] = '-10';
  189. return $view;
  190. }
  191. /**
  192. * Describe the organism administration view.
  193. *
  194. * @ingroup tripal_legacy_organism
  195. */
  196. function tripal_organism_admin_defaultview_organisms() {
  197. $view = new view();
  198. $view->name = 'tripal_organism_admin_organisms';
  199. $view->description = 'DO NOT DISABLE';
  200. $view->tag = 'tripal admin';
  201. $view->base_table = 'organism';
  202. $view->human_name = 'Organism Admin';
  203. $view->core = 0;
  204. $view->api_version = '3.0';
  205. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  206. /* Display: Defaults */
  207. $handler = $view->new_display('default', 'Defaults', 'default');
  208. $handler->display->display_options['title'] = 'Organisms';
  209. $handler->display->display_options['use_more_always'] = FALSE;
  210. $handler->display->display_options['access']['type'] = 'perm';
  211. $handler->display->display_options['access']['perm'] = 'administer tripal organism';
  212. $handler->display->display_options['cache']['type'] = 'none';
  213. $handler->display->display_options['query']['type'] = 'views_query';
  214. $handler->display->display_options['exposed_form']['type'] = 'input_required';
  215. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Search';
  216. $handler->display->display_options['exposed_form']['options']['text_input_required'] = 'Click search to see a listing of organisms that meet the filter requirements. Use the filters to restrict this set to a more reasonable number of organisms or to find a specific organism.';
  217. $handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'full_html';
  218. $handler->display->display_options['pager']['type'] = 'full';
  219. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  220. $handler->display->display_options['pager']['options']['offset'] = '0';
  221. $handler->display->display_options['pager']['options']['id'] = '0';
  222. $handler->display->display_options['pager']['options']['quantity'] = '9';
  223. $handler->display->display_options['style_plugin'] = 'table';
  224. $handler->display->display_options['style_options']['grouping'] = '';
  225. $handler->display->display_options['style_options']['columns'] = [
  226. 'common_name' => 'common_name',
  227. 'genus' => 'genus',
  228. 'species' => 'species',
  229. 'abbreviation' => 'abbreviation',
  230. ];
  231. $handler->display->display_options['style_options']['default'] = '-1';
  232. $handler->display->display_options['style_options']['info'] = [
  233. 'common_name' => [
  234. 'sortable' => 1,
  235. 'separator' => '',
  236. ],
  237. 'genus' => [
  238. 'sortable' => 1,
  239. 'separator' => '',
  240. ],
  241. 'species' => [
  242. 'sortable' => 1,
  243. 'separator' => '',
  244. ],
  245. 'abbreviation' => [
  246. 'sortable' => 1,
  247. 'separator' => '',
  248. ],
  249. ];
  250. /* Header: Global: Action Links */
  251. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  252. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  253. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  254. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  255. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  256. $handler->display->display_options['header']['action_links_area']['link-1'] = [
  257. 'label-1' => 'Add Organism',
  258. 'path-1' => 'node/add/tripal_organism',
  259. ];
  260. /* No results behavior: Global: Text area */
  261. $handler->display->display_options['empty']['text']['id'] = 'area';
  262. $handler->display->display_options['empty']['text']['table'] = 'views';
  263. $handler->display->display_options['empty']['text']['field'] = 'area';
  264. $handler->display->display_options['empty']['text']['content'] = 'No organisms matched the supplied criteria.';
  265. $handler->display->display_options['empty']['text']['format'] = '1';
  266. /* Relationship: Organism: Organism => Node */
  267. $handler->display->display_options['relationships']['organism_id']['id'] = 'organism_id';
  268. $handler->display->display_options['relationships']['organism_id']['table'] = 'chado_organism';
  269. $handler->display->display_options['relationships']['organism_id']['field'] = 'organism_id';
  270. /* Field: Content: Nid */
  271. $handler->display->display_options['fields']['nid']['id'] = 'nid';
  272. $handler->display->display_options['fields']['nid']['table'] = 'node';
  273. $handler->display->display_options['fields']['nid']['field'] = 'nid';
  274. $handler->display->display_options['fields']['nid']['exclude'] = TRUE;
  275. /* Field: Node URL */
  276. $handler->display->display_options['fields']['nid_1']['id'] = 'nid_1';
  277. $handler->display->display_options['fields']['nid_1']['table'] = 'node';
  278. $handler->display->display_options['fields']['nid_1']['field'] = 'nid';
  279. $handler->display->display_options['fields']['nid_1']['relationship'] = 'feature_id';
  280. $handler->display->display_options['fields']['nid_1']['ui_name'] = 'Node URL';
  281. $handler->display->display_options['fields']['nid_1']['label'] = '';
  282. $handler->display->display_options['fields']['nid_1']['exclude'] = TRUE;
  283. $handler->display->display_options['fields']['nid_1']['alter']['alter_text'] = TRUE;
  284. $handler->display->display_options['fields']['nid_1']['alter']['text'] = 'node/[nid]';
  285. $handler->display->display_options['fields']['nid_1']['element_label_colon'] = FALSE;
  286. /* Field: Chado Organism: Common Name */
  287. $handler->display->display_options['fields']['common_name']['id'] = 'common_name';
  288. $handler->display->display_options['fields']['common_name']['table'] = 'organism';
  289. $handler->display->display_options['fields']['common_name']['field'] = 'common_name';
  290. $handler->display->display_options['fields']['common_name']['alter']['make_link'] = TRUE;
  291. $handler->display->display_options['fields']['common_name']['alter']['path'] = '[nid_1]';
  292. /* Field: Chado Organism: Genus */
  293. $handler->display->display_options['fields']['genus']['id'] = 'genus';
  294. $handler->display->display_options['fields']['genus']['table'] = 'organism';
  295. $handler->display->display_options['fields']['genus']['field'] = 'genus';
  296. /* Field: Chado Organism: Species */
  297. $handler->display->display_options['fields']['species']['id'] = 'species';
  298. $handler->display->display_options['fields']['species']['table'] = 'organism';
  299. $handler->display->display_options['fields']['species']['field'] = 'species';
  300. /* Field: Chado Organism: Abbreviation */
  301. $handler->display->display_options['fields']['abbreviation']['id'] = 'abbreviation';
  302. $handler->display->display_options['fields']['abbreviation']['table'] = 'organism';
  303. $handler->display->display_options['fields']['abbreviation']['field'] = 'abbreviation';
  304. /* Field: Content: Delete link */
  305. $handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
  306. $handler->display->display_options['fields']['delete_node']['table'] = 'views_entity_node';
  307. $handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
  308. $handler->display->display_options['fields']['delete_node']['relationship'] = 'organism_id';
  309. $handler->display->display_options['fields']['delete_node']['exclude'] = TRUE;
  310. /* Field: Content: Edit link */
  311. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  312. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  313. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  314. $handler->display->display_options['fields']['edit_node']['relationship'] = 'organism_id';
  315. $handler->display->display_options['fields']['edit_node']['exclude'] = TRUE;
  316. /* Field: Global: Custom text */
  317. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  318. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  319. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  320. $handler->display->display_options['fields']['nothing']['label'] = '';
  321. $handler->display->display_options['fields']['nothing']['alter']['text'] = '[edit_node] [delete_node]';
  322. $handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
  323. /* Sort criterion: Chado Organism: Genus */
  324. $handler->display->display_options['sorts']['genus']['id'] = 'genus';
  325. $handler->display->display_options['sorts']['genus']['table'] = 'organism';
  326. $handler->display->display_options['sorts']['genus']['field'] = 'genus';
  327. /* Sort criterion: Chado Organism: Species */
  328. $handler->display->display_options['sorts']['species']['id'] = 'species';
  329. $handler->display->display_options['sorts']['species']['table'] = 'organism';
  330. $handler->display->display_options['sorts']['species']['field'] = 'species';
  331. /* Filter criterion: Chado Organism: Common Name */
  332. $handler->display->display_options['filters']['common_name']['id'] = 'common_name';
  333. $handler->display->display_options['filters']['common_name']['table'] = 'organism';
  334. $handler->display->display_options['filters']['common_name']['field'] = 'common_name';
  335. $handler->display->display_options['filters']['common_name']['operator'] = 'contains';
  336. $handler->display->display_options['filters']['common_name']['exposed'] = TRUE;
  337. $handler->display->display_options['filters']['common_name']['expose']['operator_id'] = '';
  338. $handler->display->display_options['filters']['common_name']['expose']['label'] = 'Common Name Contains';
  339. $handler->display->display_options['filters']['common_name']['expose']['identifier'] = 'common_name';
  340. $handler->display->display_options['filters']['common_name']['expose']['remember_roles'] = [
  341. 2 => '2',
  342. 1 => 0,
  343. 3 => 0,
  344. ];
  345. /* Filter criterion: Chado Organism: Genus */
  346. $handler->display->display_options['filters']['genus']['id'] = 'genus';
  347. $handler->display->display_options['filters']['genus']['table'] = 'organism';
  348. $handler->display->display_options['filters']['genus']['field'] = 'genus';
  349. $handler->display->display_options['filters']['genus']['exposed'] = TRUE;
  350. $handler->display->display_options['filters']['genus']['expose']['operator_id'] = 'genus_op';
  351. $handler->display->display_options['filters']['genus']['expose']['label'] = 'Genus';
  352. $handler->display->display_options['filters']['genus']['expose']['operator'] = 'genus_op';
  353. $handler->display->display_options['filters']['genus']['expose']['identifier'] = 'genus';
  354. $handler->display->display_options['filters']['genus']['expose']['remember_roles'] = [
  355. 2 => '2',
  356. 1 => 0,
  357. 3 => 0,
  358. ];
  359. /* Filter criterion: Chado Organism: Species */
  360. $handler->display->display_options['filters']['species']['id'] = 'species';
  361. $handler->display->display_options['filters']['species']['table'] = 'organism';
  362. $handler->display->display_options['filters']['species']['field'] = 'species';
  363. $handler->display->display_options['filters']['species']['exposed'] = TRUE;
  364. $handler->display->display_options['filters']['species']['expose']['operator_id'] = 'species_op';
  365. $handler->display->display_options['filters']['species']['expose']['label'] = 'Species';
  366. $handler->display->display_options['filters']['species']['expose']['operator'] = 'species_op';
  367. $handler->display->display_options['filters']['species']['expose']['identifier'] = 'species';
  368. $handler->display->display_options['filters']['species']['expose']['remember_roles'] = [
  369. 2 => '2',
  370. 1 => 0,
  371. 3 => 0,
  372. ];
  373. /** MANUALLY ADD since filter handler no exporting correctly */
  374. $handler->display->display_options['filters']['common_name']['expose']['values_form_type'] = 'textfield';
  375. $handler->display->display_options['filters']['common_name']['expose']['select_multiple'] = FALSE;
  376. $handler->display->display_options['filters']['common_name']['expose']['select_optional'] = FALSE;
  377. $handler->display->display_options['filters']['common_name']['expose']['max_length'] = 40;
  378. /* Display: Page */
  379. $handler = $view->new_display('page', 'Page', 'page_1');
  380. $handler->display->display_options['path'] = 'admin/tripal/legacy/tripal_organism/organisms';
  381. $handler->display->display_options['menu']['type'] = 'default tab';
  382. $handler->display->display_options['menu']['title'] = 'Organisms';
  383. $handler->display->display_options['menu']['description'] = 'A biological organism.';
  384. $handler->display->display_options['menu']['weight'] = '-10';
  385. $handler->display->display_options['menu']['name'] = 'management';
  386. $handler->display->display_options['menu']['context'] = 0;
  387. $handler->display->display_options['menu']['context_only_inline'] = 0;
  388. $handler->display->display_options['tab_options']['weight'] = '0';
  389. /** MANUALLY ADD since filter handler no exporting correctly
  390. * $handler->display->display_options['filters']['common_name']['expose']['values_form_type'] = 'textfield';
  391. * $handler->display->display_options['filters']['common_name']['expose']['select_multiple'] = FALSE;
  392. * $handler->display->display_options['filters']['common_name']['expose']['select_optional'] = FALSE;
  393. * $handler->display->display_options['filters']['common_name']['expose']['max_length'] = 40;
  394. */
  395. return $view;
  396. }