Guest User

Untitled

a guest
Jan 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.14 KB | None | 0 0
  1. Rules code export
  2.  
  3. array (
  4. 'rules' =>
  5. array (
  6. 'rules_sync_users_with_indivual_content_type' =>
  7. array (
  8. '#type' => 'rule',
  9. '#set' => 'event_user_insert',
  10. '#label' => 'Sync users with indivual content type',
  11. '#active' => 1,
  12. '#weight' => '0',
  13. '#categories' =>
  14. array (
  15. 0 => 'crm',
  16. ),
  17. '#status' => 'custom',
  18. '#conditions' =>
  19. array (
  20. ),
  21. '#actions' =>
  22. array (
  23. 0 =>
  24. array (
  25. '#type' => 'action',
  26. '#settings' =>
  27. array (
  28. 'username' => '',
  29. 'userid' => '[account:uid]',
  30. '#argument map' =>
  31. array (
  32. 'user_loaded' => 'user_registered_loaded',
  33. ),
  34. '#eval input' =>
  35. array (
  36. 'token_rules_input_evaluator' =>
  37. array (
  38. 'userid' =>
  39. array (
  40. 0 => 'account',
  41. 1 => ':global',
  42. ),
  43. 'username' =>
  44. array (
  45. 0 => ':global',
  46. ),
  47. ),
  48. ),
  49. ),
  50. '#name' => 'rules_action_load_user',
  51. '#info' =>
  52. array (
  53. 'label' => 'Load a user account',
  54. 'new variables' =>
  55. array (
  56. 'user_registered_loaded' =>
  57. array (
  58. 'label' => 'loaded registered user',
  59. 'label callback' => false,
  60. 'type' => 'user',
  61. ),
  62. ),
  63. 'module' => 'User',
  64. 'eval input' =>
  65. array (
  66. 0 => 'userid',
  67. 1 => 'username',
  68. ),
  69. ),
  70. '#weight' => 0,
  71. ),
  72. 1 =>
  73. array (
  74. '#weight' => 0,
  75. '#info' =>
  76. array (
  77. 'label' => 'Use Views to load a node',
  78. 'new variables' =>
  79. array (
  80. 'node' =>
  81. array (
  82. 'type' => 'node',
  83. 'label' => 'Views-provided node',
  84. 'save' => true,
  85. ),
  86. ),
  87. 'eval input' =>
  88. array (
  89. 0 => 'args',
  90. ),
  91. 'module' => 'Rules Bonus: Misc',
  92. ),
  93. '#name' => 'rb_misc_action_views_load_node',
  94. '#settings' =>
  95. array (
  96. 'view' => 'people|page_2',
  97. 'args' => '[user_registered_loaded:mail]',
  98. '#argument map' =>
  99. array (
  100. 'node' => 'node',
  101. ),
  102. '#eval input' =>
  103. array (
  104. 'token_rules_input_evaluator' =>
  105. array (
  106. 'args' =>
  107. array (
  108. 0 => 'user_registered_loaded',
  109. 1 => ':global',
  110. ),
  111. ),
  112. ),
  113. ),
  114. '#type' => 'action',
  115. ),
  116. 2 =>
  117. array (
  118. '#weight' => 0,
  119. '#type' => 'action',
  120. '#settings' =>
  121. array (
  122. 'field_name' => 'field_individual_user_ref',
  123. '#argument map' =>
  124. array (
  125. 'node' => 'node',
  126. ),
  127. 'value' =>
  128. array (
  129. 0 =>
  130. array (
  131. 'uid' => NULL,
  132. ),
  133. ),
  134. 'code' => 'return array(
  135. 0=> array(\'uid\' => $user_registered_loaded->uid)
  136. );',
  137. 'vars' =>
  138. array (
  139. 0 => 'user_registered_loaded',
  140. 1 => 'user',
  141. ),
  142. '#eval input' =>
  143. array (
  144. 'token_rules_input_evaluator' =>
  145. array (
  146. 'code' =>
  147. array (
  148. 0 => ':global',
  149. ),
  150. ),
  151. ),
  152. ),
  153. '#name' => 'content_rules_action_populate_field',
  154. '#info' =>
  155. array (
  156. 'label' => 'Populate Views-provided node\'s field \'field_individual_user_ref\'',
  157. 'arguments' =>
  158. array (
  159. 'node' =>
  160. array (
  161. 'type' => 'node',
  162. 'label' => 'Content',
  163. ),
  164. ),
  165. 'eval input' =>
  166. array (
  167. 0 => 'code',
  168. ),
  169. 'module' => 'CCK',
  170. ),
  171. ),
  172. ),
  173. '#version' => 6003,
  174. ),
  175. ),
  176. )
  177.  
  178.  
  179.  
  180. Views Export (more displays that needed Just make a view that filters by the contact email)
  181.  
  182. $view = new view;
  183. $view->name = 'people';
  184. $view->description = 'Individuals in the CRM';
  185. $view->tag = 'crm';
  186. $view->view_php = '';
  187. $view->base_table = 'node';
  188. $view->is_cacheable = FALSE;
  189. $view->api_version = 2;
  190. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  191. $handler = $view->new_display('default', 'Defaults', 'default');
  192. $handler->override_option('fields', array(
  193. 'field_contact_picture_fid' => array(
  194. 'label' => 'Picture',
  195. 'alter' => array(
  196. 'alter_text' => 0,
  197. 'text' => '',
  198. 'make_link' => 0,
  199. 'path' => '',
  200. 'link_class' => '',
  201. 'alt' => '',
  202. 'prefix' => '',
  203. 'suffix' => '',
  204. 'target' => '',
  205. 'help' => '',
  206. 'trim' => 0,
  207. 'max_length' => '',
  208. 'word_boundary' => 1,
  209. 'ellipsis' => 1,
  210. 'html' => 0,
  211. 'strip_tags' => 0,
  212. ),
  213. 'empty' => '',
  214. 'hide_empty' => 0,
  215. 'empty_zero' => 0,
  216. 'link_to_node' => 1,
  217. 'label_type' => 'widget',
  218. 'format' => 'uc_thumbnail_default',
  219. 'multiple' => array(
  220. 'group' => TRUE,
  221. 'multiple_number' => '',
  222. 'multiple_from' => '',
  223. 'multiple_reversed' => FALSE,
  224. ),
  225. 'exclude' => 0,
  226. 'id' => 'field_contact_picture_fid',
  227. 'table' => 'node_data_field_contact_picture',
  228. 'field' => 'field_contact_picture_fid',
  229. 'override' => array(
  230. 'button' => 'Override',
  231. ),
  232. 'relationship' => 'none',
  233. ),
  234. 'field_contact_first_name_value' => array(
  235. 'label' => 'First',
  236. 'alter' => array(
  237. 'alter_text' => 0,
  238. 'text' => '',
  239. 'make_link' => 0,
  240. 'path' => '',
  241. 'link_class' => '',
  242. 'alt' => '',
  243. 'prefix' => '',
  244. 'suffix' => '',
  245. 'target' => '',
  246. 'help' => '',
  247. 'trim' => 0,
  248. 'max_length' => '',
  249. 'word_boundary' => 1,
  250. 'ellipsis' => 1,
  251. 'html' => 0,
  252. 'strip_tags' => 0,
  253. ),
  254. 'empty' => '',
  255. 'hide_empty' => 0,
  256. 'empty_zero' => 0,
  257. 'link_to_node' => 1,
  258. 'label_type' => 'custom',
  259. 'format' => 'default',
  260. 'multiple' => array(
  261. 'group' => TRUE,
  262. 'multiple_number' => '',
  263. 'multiple_from' => '',
  264. 'multiple_reversed' => FALSE,
  265. ),
  266. 'exclude' => 0,
  267. 'id' => 'field_contact_first_name_value',
  268. 'table' => 'node_data_field_contact_first_name',
  269. 'field' => 'field_contact_first_name_value',
  270. 'relationship' => 'none',
  271. ),
  272. 'field_contact_last_name_value' => array(
  273. 'label' => 'Last',
  274. 'alter' => array(
  275. 'alter_text' => 0,
  276. 'text' => '',
  277. 'make_link' => 0,
  278. 'path' => '',
  279. 'link_class' => '',
  280. 'alt' => '',
  281. 'prefix' => '',
  282. 'suffix' => '',
  283. 'target' => '',
  284. 'help' => '',
  285. 'trim' => 0,
  286. 'max_length' => '',
  287. 'word_boundary' => 1,
  288. 'ellipsis' => 1,
  289. 'html' => 0,
  290. 'strip_tags' => 0,
  291. ),
  292. 'empty' => '',
  293. 'hide_empty' => 0,
  294. 'empty_zero' => 0,
  295. 'link_to_node' => 0,
  296. 'label_type' => 'custom',
  297. 'format' => 'default',
  298. 'multiple' => array(
  299. 'group' => TRUE,
  300. 'multiple_number' => '',
  301. 'multiple_from' => '',
  302. 'multiple_reversed' => FALSE,
  303. ),
  304. 'exclude' => 0,
  305. 'id' => 'field_contact_last_name_value',
  306. 'table' => 'node_data_field_contact_last_name',
  307. 'field' => 'field_contact_last_name_value',
  308. 'relationship' => 'none',
  309. ),
  310. 'field_contact_mobile_phone_number' => array(
  311. 'label' => 'Mobile Phone',
  312. 'alter' => array(
  313. 'alter_text' => 0,
  314. 'text' => '',
  315. 'make_link' => 0,
  316. 'path' => '',
  317. 'link_class' => '',
  318. 'alt' => '',
  319. 'prefix' => '',
  320. 'suffix' => '',
  321. 'target' => '',
  322. 'help' => '',
  323. 'trim' => 0,
  324. 'max_length' => '',
  325. 'word_boundary' => 1,
  326. 'ellipsis' => 1,
  327. 'html' => 0,
  328. 'strip_tags' => 0,
  329. ),
  330. 'empty' => '',
  331. 'hide_empty' => 0,
  332. 'empty_zero' => 0,
  333. 'link_to_node' => 0,
  334. 'label_type' => 'widget',
  335. 'format' => 'default',
  336. 'multiple' => array(
  337. 'group' => TRUE,
  338. 'multiple_number' => '',
  339. 'multiple_from' => '',
  340. 'multiple_reversed' => FALSE,
  341. ),
  342. 'exclude' => 0,
  343. 'id' => 'field_contact_mobile_phone_number',
  344. 'table' => 'node_data_field_contact_mobile_phone',
  345. 'field' => 'field_contact_mobile_phone_number',
  346. 'relationship' => 'none',
  347. ),
  348. 'field_contact_email_email' => array(
  349. 'label' => 'Email',
  350. 'alter' => array(
  351. 'alter_text' => 0,
  352. 'text' => '',
  353. 'make_link' => 0,
  354. 'path' => '',
  355. 'link_class' => '',
  356. 'alt' => '',
  357. 'prefix' => '',
  358. 'suffix' => '',
  359. 'target' => '',
  360. 'help' => '',
  361. 'trim' => 0,
  362. 'max_length' => '',
  363. 'word_boundary' => 1,
  364. 'ellipsis' => 1,
  365. 'html' => 0,
  366. 'strip_tags' => 0,
  367. ),
  368. 'empty' => '',
  369. 'hide_empty' => 0,
  370. 'empty_zero' => 0,
  371. 'link_to_node' => 0,
  372. 'label_type' => 'widget',
  373. 'format' => 'default',
  374. 'multiple' => array(
  375. 'group' => TRUE,
  376. 'multiple_number' => '',
  377. 'multiple_from' => '',
  378. 'multiple_reversed' => FALSE,
  379. ),
  380. 'exclude' => 0,
  381. 'id' => 'field_contact_email_email',
  382. 'table' => 'node_data_field_contact_email',
  383. 'field' => 'field_contact_email_email',
  384. 'relationship' => 'none',
  385. ),
  386. 'city' => array(
  387. 'label' => 'City',
  388. 'alter' => array(
  389. 'alter_text' => 0,
  390. 'text' => '',
  391. 'make_link' => 0,
  392. 'path' => '',
  393. 'link_class' => '',
  394. 'alt' => '',
  395. 'prefix' => '',
  396. 'suffix' => '',
  397. 'target' => '',
  398. 'help' => '',
  399. 'trim' => 0,
  400. 'max_length' => '',
  401. 'word_boundary' => 1,
  402. 'ellipsis' => 1,
  403. 'html' => 0,
  404. 'strip_tags' => 0,
  405. ),
  406. 'empty' => '',
  407. 'hide_empty' => 0,
  408. 'empty_zero' => 0,
  409. 'exclude' => 0,
  410. 'id' => 'city',
  411. 'table' => 'location',
  412. 'field' => 'city',
  413. 'relationship' => 'none',
  414. ),
  415. 'province' => array(
  416. 'label' => 'State/Province',
  417. 'alter' => array(
  418. 'alter_text' => 0,
  419. 'text' => '',
  420. 'make_link' => 0,
  421. 'path' => '',
  422. 'link_class' => '',
  423. 'alt' => '',
  424. 'prefix' => '',
  425. 'suffix' => '',
  426. 'target' => '',
  427. 'help' => '',
  428. 'trim' => 0,
  429. 'max_length' => '',
  430. 'word_boundary' => 1,
  431. 'ellipsis' => 1,
  432. 'html' => 0,
  433. 'strip_tags' => 0,
  434. ),
  435. 'empty' => '',
  436. 'hide_empty' => 0,
  437. 'empty_zero' => 0,
  438. 'style' => 'name',
  439. 'exclude' => 0,
  440. 'id' => 'province',
  441. 'table' => 'location',
  442. 'field' => 'province',
  443. 'relationship' => 'none',
  444. ),
  445. 'postal_code' => array(
  446. 'label' => 'Postal Code',
  447. 'alter' => array(
  448. 'alter_text' => 0,
  449. 'text' => '',
  450. 'make_link' => 0,
  451. 'path' => '',
  452. 'link_class' => '',
  453. 'alt' => '',
  454. 'prefix' => '',
  455. 'suffix' => '',
  456. 'target' => '',
  457. 'help' => '',
  458. 'trim' => 0,
  459. 'max_length' => '',
  460. 'word_boundary' => 1,
  461. 'ellipsis' => 1,
  462. 'html' => 0,
  463. 'strip_tags' => 0,
  464. ),
  465. 'empty' => '',
  466. 'hide_empty' => 0,
  467. 'empty_zero' => 0,
  468. 'exclude' => 0,
  469. 'id' => 'postal_code',
  470. 'table' => 'location',
  471. 'field' => 'postal_code',
  472. 'relationship' => 'none',
  473. ),
  474. 'edit_node' => array(
  475. 'label' => 'Edit',
  476. 'alter' => array(
  477. 'alter_text' => 0,
  478. 'text' => '',
  479. 'make_link' => 0,
  480. 'path' => '',
  481. 'link_class' => '',
  482. 'alt' => '',
  483. 'prefix' => '',
  484. 'suffix' => '',
  485. 'target' => '',
  486. 'help' => '',
  487. 'trim' => 0,
  488. 'max_length' => '',
  489. 'word_boundary' => 1,
  490. 'ellipsis' => 1,
  491. 'html' => 0,
  492. 'strip_tags' => 0,
  493. ),
  494. 'empty' => '',
  495. 'hide_empty' => 0,
  496. 'empty_zero' => 0,
  497. 'text' => '',
  498. 'exclude' => 0,
  499. 'id' => 'edit_node',
  500. 'table' => 'node',
  501. 'field' => 'edit_node',
  502. 'relationship' => 'none',
  503. ),
  504. ));
  505. $handler->override_option('filters', array(
  506. 'status' => array(
  507. 'operator' => '=',
  508. 'value' => '1',
  509. 'group' => '0',
  510. 'exposed' => FALSE,
  511. 'expose' => array(
  512. 'operator' => FALSE,
  513. 'label' => '',
  514. ),
  515. 'id' => 'status',
  516. 'table' => 'node',
  517. 'field' => 'status',
  518. 'relationship' => 'none',
  519. ),
  520. 'type' => array(
  521. 'operator' => 'in',
  522. 'value' => array(
  523. 'individual' => 'individual',
  524. ),
  525. 'group' => '0',
  526. 'exposed' => FALSE,
  527. 'expose' => array(
  528. 'operator' => FALSE,
  529. 'label' => '',
  530. ),
  531. 'id' => 'type',
  532. 'table' => 'node',
  533. 'field' => 'type',
  534. 'relationship' => 'none',
  535. ),
  536. ));
  537. $handler->override_option('access', array(
  538. 'type' => 'none',
  539. ));
  540. $handler->override_option('cache', array(
  541. 'type' => 'none',
  542. ));
  543. $handler->override_option('title', 'People');
  544. $handler->override_option('items_per_page', 50);
  545. $handler->override_option('use_pager', '1');
  546. $handler->override_option('style_plugin', 'bulk');
  547. $handler = $view->new_display('page', 'Page', 'page_1');
  548. $handler->override_option('header', '<a href="/node/add/individual">Add Individual</a>');
  549. $handler->override_option('header_format', '1');
  550. $handler->override_option('header_empty', 0);
  551. $handler->override_option('path', 'ws/partner-development/people');
  552. $handler->override_option('menu', array(
  553. 'type' => 'normal',
  554. 'title' => 'People',
  555. 'description' => 'List of all individuals in the CRM',
  556. 'weight' => '0',
  557. 'name' => 'menu-venture',
  558. ));
  559. $handler->override_option('tab_options', array(
  560. 'type' => 'none',
  561. 'title' => '',
  562. 'description' => '',
  563. 'weight' => 0,
  564. 'name' => 'navigation',
  565. ));
  566. $handler = $view->new_display('feed', 'Feed', 'feed_1');
  567. $handler->override_option('fields', array(
  568. 'field_contact_first_name_value' => array(
  569. 'label' => 'First',
  570. 'alter' => array(
  571. 'alter_text' => 0,
  572. 'text' => '',
  573. 'make_link' => 0,
  574. 'path' => '',
  575. 'link_class' => '',
  576. 'alt' => '',
  577. 'prefix' => '',
  578. 'suffix' => '',
  579. 'target' => '',
  580. 'help' => '',
  581. 'trim' => 0,
  582. 'max_length' => '',
  583. 'word_boundary' => 1,
  584. 'ellipsis' => 1,
  585. 'html' => 0,
  586. 'strip_tags' => 0,
  587. ),
  588. 'empty' => '',
  589. 'hide_empty' => 0,
  590. 'empty_zero' => 0,
  591. 'link_to_node' => 1,
  592. 'label_type' => 'custom',
  593. 'format' => 'default',
  594. 'multiple' => array(
  595. 'group' => TRUE,
  596. 'multiple_number' => '',
  597. 'multiple_from' => '',
  598. 'multiple_reversed' => FALSE,
  599. ),
  600. 'exclude' => 0,
  601. 'id' => 'field_contact_first_name_value',
  602. 'table' => 'node_data_field_contact_first_name',
  603. 'field' => 'field_contact_first_name_value',
  604. 'relationship' => 'none',
  605. ),
  606. 'field_contact_last_name_value' => array(
  607. 'label' => 'Last',
  608. 'alter' => array(
  609. 'alter_text' => 0,
  610. 'text' => '',
  611. 'make_link' => 0,
  612. 'path' => '',
  613. 'link_class' => '',
  614. 'alt' => '',
  615. 'prefix' => '',
  616. 'suffix' => '',
  617. 'target' => '',
  618. 'help' => '',
  619. 'trim' => 0,
  620. 'max_length' => '',
  621. 'word_boundary' => 1,
  622. 'ellipsis' => 1,
  623. 'html' => 0,
  624. 'strip_tags' => 0,
  625. ),
  626. 'empty' => '',
  627. 'hide_empty' => 0,
  628. 'empty_zero' => 0,
  629. 'link_to_node' => 0,
  630. 'label_type' => 'custom',
  631. 'format' => 'default',
  632. 'multiple' => array(
  633. 'group' => TRUE,
  634. 'multiple_number' => '',
  635. 'multiple_from' => '',
  636. 'multiple_reversed' => FALSE,
  637. ),
  638. 'exclude' => 0,
  639. 'id' => 'field_contact_last_name_value',
  640. 'table' => 'node_data_field_contact_last_name',
  641. 'field' => 'field_contact_last_name_value',
  642. 'relationship' => 'none',
  643. ),
  644. 'field_contact_mobile_phone_number' => array(
  645. 'label' => 'Mobile Phone',
  646. 'alter' => array(
  647. 'alter_text' => 0,
  648. 'text' => '',
  649. 'make_link' => 0,
  650. 'path' => '',
  651. 'link_class' => '',
  652. 'alt' => '',
  653. 'prefix' => '',
  654. 'suffix' => '',
  655. 'target' => '',
  656. 'help' => '',
  657. 'trim' => 0,
  658. 'max_length' => '',
  659. 'word_boundary' => 1,
  660. 'ellipsis' => 1,
  661. 'html' => 0,
  662. 'strip_tags' => 0,
  663. ),
  664. 'empty' => '',
  665. 'hide_empty' => 0,
  666. 'empty_zero' => 0,
  667. 'link_to_node' => 0,
  668. 'label_type' => 'widget',
  669. 'format' => 'default',
  670. 'multiple' => array(
  671. 'group' => TRUE,
  672. 'multiple_number' => '',
  673. 'multiple_from' => '',
  674. 'multiple_reversed' => FALSE,
  675. ),
  676. 'exclude' => 0,
  677. 'id' => 'field_contact_mobile_phone_number',
  678. 'table' => 'node_data_field_contact_mobile_phone',
  679. 'field' => 'field_contact_mobile_phone_number',
  680. 'relationship' => 'none',
  681. ),
  682. 'field_contact_email_email' => array(
  683. 'label' => 'Email',
  684. 'alter' => array(
  685. 'alter_text' => 0,
  686. 'text' => '',
  687. 'make_link' => 0,
  688. 'path' => '',
  689. 'link_class' => '',
  690. 'alt' => '',
  691. 'prefix' => '',
  692. 'suffix' => '',
  693. 'target' => '',
  694. 'help' => '',
  695. 'trim' => 0,
  696. 'max_length' => '',
  697. 'word_boundary' => 1,
  698. 'ellipsis' => 1,
  699. 'html' => 0,
  700. 'strip_tags' => 0,
  701. ),
  702. 'empty' => '',
  703. 'hide_empty' => 0,
  704. 'empty_zero' => 0,
  705. 'link_to_node' => 0,
  706. 'label_type' => 'widget',
  707. 'format' => 'default',
  708. 'multiple' => array(
  709. 'group' => TRUE,
  710. 'multiple_number' => '',
  711. 'multiple_from' => '',
  712. 'multiple_reversed' => FALSE,
  713. ),
  714. 'exclude' => 0,
  715. 'id' => 'field_contact_email_email',
  716. 'table' => 'node_data_field_contact_email',
  717. 'field' => 'field_contact_email_email',
  718. 'relationship' => 'none',
  719. ),
  720. 'city' => array(
  721. 'label' => 'City',
  722. 'alter' => array(
  723. 'alter_text' => 0,
  724. 'text' => '',
  725. 'make_link' => 0,
  726. 'path' => '',
  727. 'link_class' => '',
  728. 'alt' => '',
  729. 'prefix' => '',
  730. 'suffix' => '',
  731. 'target' => '',
  732. 'help' => '',
  733. 'trim' => 0,
  734. 'max_length' => '',
  735. 'word_boundary' => 1,
  736. 'ellipsis' => 1,
  737. 'html' => 0,
  738. 'strip_tags' => 0,
  739. ),
  740. 'empty' => '',
  741. 'hide_empty' => 0,
  742. 'empty_zero' => 0,
  743. 'exclude' => 0,
  744. 'id' => 'city',
  745. 'table' => 'location',
  746. 'field' => 'city',
  747. 'relationship' => 'none',
  748. ),
  749. 'province' => array(
  750. 'label' => 'State/Province',
  751. 'alter' => array(
  752. 'alter_text' => 0,
  753. 'text' => '',
  754. 'make_link' => 0,
  755. 'path' => '',
  756. 'link_class' => '',
  757. 'alt' => '',
  758. 'prefix' => '',
  759. 'suffix' => '',
  760. 'target' => '',
  761. 'help' => '',
  762. 'trim' => 0,
  763. 'max_length' => '',
  764. 'word_boundary' => 1,
  765. 'ellipsis' => 1,
  766. 'html' => 0,
  767. 'strip_tags' => 0,
  768. ),
  769. 'empty' => '',
  770. 'hide_empty' => 0,
  771. 'empty_zero' => 0,
  772. 'style' => 'name',
  773. 'exclude' => 0,
  774. 'id' => 'province',
  775. 'table' => 'location',
  776. 'field' => 'province',
  777. 'relationship' => 'none',
  778. ),
  779. 'postal_code' => array(
  780. 'label' => 'Postal Code',
  781. 'alter' => array(
  782. 'alter_text' => 0,
  783. 'text' => '',
  784. 'make_link' => 0,
  785. 'path' => '',
  786. 'link_class' => '',
  787. 'alt' => '',
  788. 'prefix' => '',
  789. 'suffix' => '',
  790. 'target' => '',
  791. 'help' => '',
  792. 'trim' => 0,
  793. 'max_length' => '',
  794. 'word_boundary' => 1,
  795. 'ellipsis' => 1,
  796. 'html' => 0,
  797. 'strip_tags' => 0,
  798. ),
  799. 'empty' => '',
  800. 'hide_empty' => 0,
  801. 'empty_zero' => 0,
  802. 'exclude' => 0,
  803. 'id' => 'postal_code',
  804. 'table' => 'location',
  805. 'field' => 'postal_code',
  806. 'relationship' => 'none',
  807. ),
  808. ));
  809. $handler->override_option('items_per_page', 0);
  810. $handler->override_option('link_display', 'page_1');
  811. $handler->override_option('style_plugin', 'views_csv');
  812. $handler->override_option('style_options', array(
  813. 'mission_description' => FALSE,
  814. 'description' => '',
  815. ));
  816. $handler->override_option('row_plugin', '');
  817. $handler->override_option('path', 'ws/partner-development/people/people.csv');
  818. $handler->override_option('menu', array(
  819. 'type' => 'none',
  820. 'title' => '',
  821. 'description' => '',
  822. 'weight' => 0,
  823. 'name' => 'navigation',
  824. ));
  825. $handler->override_option('tab_options', array(
  826. 'type' => 'none',
  827. 'title' => '',
  828. 'description' => '',
  829. 'weight' => 0,
  830. 'name' => 'navigation',
  831. ));
  832. $handler->override_option('displays', array(
  833. 'page_1' => 'page_1',
  834. 'default' => 0,
  835. ));
  836. $handler->override_option('sitename_title', FALSE);
  837. $handler = $view->new_display('pdf', 'PDF Page', 'pdf_1');
  838. $handler->override_option('items_per_page', 0);
  839. $handler->override_option('style_plugin', 'pdf_table');
  840. $handler->override_option('style_options', array(
  841. 'mission_description' => FALSE,
  842. 'description' => '',
  843. 'info' => array(
  844. 'field_contact_picture_fid' => array(
  845. 'header_style' => array(
  846. 'text' => array(
  847. 'font_size' => '',
  848. 'font_family' => 'default',
  849. 'font_style' => array(
  850. 'b' => 0,
  851. 'i' => 0,
  852. 'u' => 0,
  853. 'd' => 0,
  854. 'o' => 0,
  855. ),
  856. 'align' => NULL,
  857. 'hyphenate' => NULL,
  858. 'color' => '',
  859. ),
  860. 'render' => array(
  861. 'is_html' => 1,
  862. 'eval_before' => '',
  863. 'eval_after' => '',
  864. ),
  865. ),
  866. 'body_style' => array(
  867. 'text' => array(
  868. 'font_size' => '',
  869. 'font_family' => 'default',
  870. 'font_style' => array(
  871. 'b' => 0,
  872. 'i' => 0,
  873. 'u' => 0,
  874. 'd' => 0,
  875. 'o' => 0,
  876. ),
  877. 'align' => NULL,
  878. 'hyphenate' => NULL,
  879. 'color' => '',
  880. ),
  881. 'render' => array(
  882. 'is_html' => 1,
  883. 'eval_before' => '',
  884. 'eval_after' => '',
  885. ),
  886. ),
  887. 'position' => array(
  888. 'width' => '',
  889. ),
  890. ),
  891. 'field_contact_first_name_value' => array(
  892. 'header_style' => array(
  893. 'text' => array(
  894. 'font_size' => '',
  895. 'font_family' => 'default',
  896. 'font_style' => array(
  897. 'b' => 0,
  898. 'i' => 0,
  899. 'u' => 0,
  900. 'd' => 0,
  901. 'o' => 0,
  902. ),
  903. 'align' => NULL,
  904. 'hyphenate' => NULL,
  905. 'color' => '',
  906. ),
  907. 'render' => array(
  908. 'is_html' => 1,
  909. 'eval_before' => '',
  910. 'eval_after' => '',
  911. ),
  912. ),
  913. 'body_style' => array(
  914. 'text' => array(
  915. 'font_size' => '',
  916. 'font_family' => 'default',
  917. 'font_style' => array(
  918. 'b' => 0,
  919. 'i' => 0,
  920. 'u' => 0,
  921. 'd' => 0,
  922. 'o' => 0,
  923. ),
  924. 'align' => NULL,
  925. 'hyphenate' => NULL,
  926. 'color' => '',
  927. ),
  928. 'render' => array(
  929. 'is_html' => 1,
  930. 'eval_before' => '',
  931. 'eval_after' => '',
  932. ),
  933. ),
  934. 'position' => array(
  935. 'width' => '',
  936. ),
  937. ),
  938. 'field_contact_last_name_value' => array(
  939. 'header_style' => array(
  940. 'text' => array(
  941. 'font_size' => '',
  942. 'font_family' => 'default',
  943. 'font_style' => array(
  944. 'b' => 0,
  945. 'i' => 0,
  946. 'u' => 0,
  947. 'd' => 0,
  948. 'o' => 0,
  949. ),
  950. 'align' => NULL,
  951. 'hyphenate' => NULL,
  952. 'color' => '',
  953. ),
  954. 'render' => array(
  955. 'is_html' => 1,
  956. 'eval_before' => '',
  957. 'eval_after' => '',
  958. ),
  959. ),
  960. 'body_style' => array(
  961. 'text' => array(
  962. 'font_size' => '',
  963. 'font_family' => 'default',
  964. 'font_style' => array(
  965. 'b' => 0,
  966. 'i' => 0,
  967. 'u' => 0,
  968. 'd' => 0,
  969. 'o' => 0,
  970. ),
  971. 'align' => NULL,
  972. 'hyphenate' => NULL,
  973. 'color' => '',
  974. ),
  975. 'render' => array(
  976. 'is_html' => 1,
  977. 'eval_before' => '',
  978. 'eval_after' => '',
  979. ),
  980. ),
  981. 'position' => array(
  982. 'width' => '',
  983. ),
  984. ),
  985. 'field_contact_mobile_phone_number' => array(
  986. 'header_style' => array(
  987. 'text' => array(
  988. 'font_size' => '',
  989. 'font_family' => 'default',
  990. 'font_style' => array(
  991. 'b' => 0,
  992. 'i' => 0,
  993. 'u' => 0,
  994. 'd' => 0,
  995. 'o' => 0,
  996. ),
  997. 'align' => NULL,
  998. 'hyphenate' => NULL,
  999. 'color' => '',
  1000. ),
  1001. 'render' => array(
  1002. 'is_html' => 1,
  1003. 'eval_before' => '',
  1004. 'eval_after' => '',
  1005. ),
  1006. ),
  1007. 'body_style' => array(
  1008. 'text' => array(
  1009. 'font_size' => '',
  1010. 'font_family' => 'default',
  1011. 'font_style' => array(
  1012. 'b' => 0,
  1013. 'i' => 0,
  1014. 'u' => 0,
  1015. 'd' => 0,
  1016. 'o' => 0,
  1017. ),
  1018. 'align' => NULL,
  1019. 'hyphenate' => NULL,
  1020. 'color' => '',
  1021. ),
  1022. 'render' => array(
  1023. 'is_html' => 1,
  1024. 'eval_before' => '',
  1025. 'eval_after' => '',
  1026. ),
  1027. ),
  1028. 'position' => array(
  1029. 'width' => '',
  1030. ),
  1031. ),
  1032. 'field_contact_email_email' => array(
  1033. 'header_style' => array(
  1034. 'text' => array(
  1035. 'font_size' => '',
  1036. 'font_family' => 'default',
  1037. 'font_style' => array(
  1038. 'b' => 0,
  1039. 'i' => 0,
  1040. 'u' => 0,
  1041. 'd' => 0,
  1042. 'o' => 0,
  1043. ),
  1044. 'align' => NULL,
  1045. 'hyphenate' => NULL,
  1046. 'color' => '',
  1047. ),
  1048. 'render' => array(
  1049. 'is_html' => 1,
  1050. 'eval_before' => '',
  1051. 'eval_after' => '',
  1052. ),
  1053. ),
  1054. 'body_style' => array(
  1055. 'text' => array(
  1056. 'font_size' => '',
  1057. 'font_family' => 'default',
  1058. 'font_style' => array(
  1059. 'b' => 0,
  1060. 'i' => 0,
  1061. 'u' => 0,
  1062. 'd' => 0,
  1063. 'o' => 0,
  1064. ),
  1065. 'align' => NULL,
  1066. 'hyphenate' => NULL,
  1067. 'color' => '',
  1068. ),
  1069. 'render' => array(
  1070. 'is_html' => 1,
  1071. 'eval_before' => '',
  1072. 'eval_after' => '',
  1073. ),
  1074. ),
  1075. 'position' => array(
  1076. 'width' => '',
  1077. ),
  1078. ),
  1079. 'city' => array(
  1080. 'header_style' => array(
  1081. 'text' => array(
  1082. 'font_size' => '',
  1083. 'font_family' => 'default',
  1084. 'font_style' => array(
  1085. 'b' => 0,
  1086. 'i' => 0,
  1087. 'u' => 0,
  1088. 'd' => 0,
  1089. 'o' => 0,
  1090. ),
  1091. 'align' => NULL,
  1092. 'hyphenate' => NULL,
  1093. 'color' => '',
  1094. ),
  1095. 'render' => array(
  1096. 'is_html' => 1,
  1097. 'eval_before' => '',
  1098. 'eval_after' => '',
  1099. ),
  1100. ),
  1101. 'body_style' => array(
  1102. 'text' => array(
  1103. 'font_size' => '',
  1104. 'font_family' => 'default',
  1105. 'font_style' => array(
  1106. 'b' => 0,
  1107. 'i' => 0,
  1108. 'u' => 0,
  1109. 'd' => 0,
  1110. 'o' => 0,
  1111. ),
  1112. 'align' => NULL,
  1113. 'hyphenate' => NULL,
  1114. 'color' => '',
  1115. ),
  1116. 'render' => array(
  1117. 'is_html' => 1,
  1118. 'eval_before' => '',
  1119. 'eval_after' => '',
  1120. ),
  1121. ),
  1122. 'position' => array(
  1123. 'width' => '',
  1124. ),
  1125. ),
  1126. 'province' => array(
  1127. 'header_style' => array(
  1128. 'text' => array(
  1129. 'font_size' => '',
  1130. 'font_family' => 'default',
  1131. 'font_style' => array(
  1132. 'b' => 0,
  1133. 'i' => 0,
  1134. 'u' => 0,
  1135. 'd' => 0,
  1136. 'o' => 0,
  1137. ),
  1138. 'align' => NULL,
  1139. 'hyphenate' => NULL,
  1140. 'color' => '',
  1141. ),
  1142. 'render' => array(
  1143. 'is_html' => 1,
  1144. 'eval_before' => '',
  1145. 'eval_after' => '',
  1146. ),
  1147. ),
  1148. 'body_style' => array(
  1149. 'text' => array(
  1150. 'font_size' => '',
  1151. 'font_family' => 'default',
  1152. 'font_style' => array(
  1153. 'b' => 0,
  1154. 'i' => 0,
  1155. 'u' => 0,
  1156. 'd' => 0,
  1157. 'o' => 0,
  1158. ),
  1159. 'align' => NULL,
  1160. 'hyphenate' => NULL,
  1161. 'color' => '',
  1162. ),
  1163. 'render' => array(
  1164. 'is_html' => 1,
  1165. 'eval_before' => '',
  1166. 'eval_after' => '',
  1167. ),
  1168. ),
  1169. 'position' => array(
  1170. 'width' => '',
  1171. ),
  1172. ),
  1173. 'postal_code' => array(
  1174. 'header_style' => array(
  1175. 'text' => array(
  1176. 'font_size' => '',
  1177. 'font_family' => 'default',
  1178. 'font_style' => array(
  1179. 'b' => 0,
  1180. 'i' => 0,
  1181. 'u' => 0,
  1182. 'd' => 0,
  1183. 'o' => 0,
  1184. ),
  1185. 'align' => NULL,
  1186. 'hyphenate' => NULL,
  1187. 'color' => '',
  1188. ),
  1189. 'render' => array(
  1190. 'is_html' => 1,
  1191. 'eval_before' => '',
  1192. 'eval_after' => '',
  1193. ),
  1194. ),
  1195. 'body_style' => array(
  1196. 'text' => array(
  1197. 'font_size' => '',
  1198. 'font_family' => 'default',
  1199. 'font_style' => array(
  1200. 'b' => 0,
  1201. 'i' => 0,
  1202. 'u' => 0,
  1203. 'd' => 0,
  1204. 'o' => 0,
  1205. ),
  1206. 'align' => NULL,
  1207. 'hyphenate' => NULL,
  1208. 'color' => '',
  1209. ),
  1210. 'render' => array(
  1211. 'is_html' => 1,
  1212. 'eval_before' => '',
  1213. 'eval_after' => '',
  1214. ),
  1215. ),
  1216. 'position' => array(
  1217. 'width' => '',
  1218. ),
  1219. ),
  1220. 'edit_node' => array(
  1221. 'header_style' => array(
  1222. 'text' => array(
  1223. 'font_size' => '',
  1224. 'font_family' => 'default',
  1225. 'font_style' => array(
  1226. 'b' => 0,
  1227. 'i' => 0,
  1228. 'u' => 0,
  1229. 'd' => 0,
  1230. 'o' => 0,
  1231. ),
  1232. 'align' => NULL,
  1233. 'hyphenate' => NULL,
  1234. 'color' => '',
  1235. ),
  1236. 'render' => array(
  1237. 'is_html' => 1,
  1238. 'eval_before' => '',
  1239. 'eval_after' => '',
  1240. ),
  1241. ),
  1242. 'body_style' => array(
  1243. 'text' => array(
  1244. 'font_size' => '',
  1245. 'font_family' => 'default',
  1246. 'font_style' => array(
  1247. 'b' => 0,
  1248. 'i' => 0,
  1249. 'u' => 0,
  1250. 'd' => 0,
  1251. 'o' => 0,
  1252. ),
  1253. 'align' => NULL,
  1254. 'hyphenate' => NULL,
  1255. 'color' => '',
  1256. ),
  1257. 'render' => array(
  1258. 'is_html' => 1,
  1259. 'eval_before' => '',
  1260. 'eval_after' => '',
  1261. ),
  1262. ),
  1263. 'position' => array(
  1264. 'width' => '',
  1265. ),
  1266. ),
  1267. ),
  1268. 'position' => array(
  1269. 'last_writing_position' => 1,
  1270. 'x' => '',
  1271. 'y' => '',
  1272. 'width' => '',
  1273. 'row_height' => '',
  1274. ),
  1275. 'grouping' => '',
  1276. ));
  1277. $handler->override_option('row_plugin', 'pdf_fields');
  1278. $handler->override_option('path', 'ws/partner-development/people/people.pdf');
  1279. $handler->override_option('menu', array(
  1280. 'type' => 'none',
  1281. 'title' => '',
  1282. 'description' => '',
  1283. 'weight' => 0,
  1284. 'name' => 'navigation',
  1285. ));
  1286. $handler->override_option('tab_options', array(
  1287. 'type' => 'none',
  1288. 'title' => '',
  1289. 'description' => '',
  1290. 'weight' => 0,
  1291. 'name' => 'navigation',
  1292. ));
  1293. $handler->override_option('displays', array(
  1294. 'page_1' => 'page_1',
  1295. 'default' => 0,
  1296. ));
  1297. $handler->override_option('sitename_title', FALSE);
  1298. $handler->override_option('default_page_format', 'LETTER');
  1299. $handler->override_option('default_page_format_custom', '');
  1300. $handler->override_option('default_page_orientation', 'L');
  1301. $handler->override_option('unit', 'mm');
  1302. $handler->override_option('margin_left', '15');
  1303. $handler->override_option('margin_right', '15');
  1304. $handler->override_option('margin_top', '15');
  1305. $handler->override_option('margin_bottom', '15');
  1306. $handler->override_option('leading_template', '');
  1307. $handler->override_option('template', '');
  1308. $handler->override_option('succeed_template', '');
  1309. $handler->override_option('default_font_family', 'helvetica');
  1310. $handler->override_option('default_font_style', array());
  1311. $handler->override_option('default_font_size', '11');
  1312. $handler->override_option('default_text_align', 'L');
  1313. $handler->override_option('default_font_color', '000000');
  1314. $handler->override_option('default_text_hyphenate', 'none');
  1315. $handler->override_option('css_file', '');
  1316. $handler = $view->new_display('page', 'People filter by email', 'page_2');
  1317. $handler->override_option('arguments', array(
  1318. 'field_contact_email_email' => array(
  1319. 'default_action' => 'ignore',
  1320. 'style_plugin' => 'default_summary',
  1321. 'style_options' => array(),
  1322. 'wildcard' => 'all',
  1323. 'wildcard_substitution' => 'All',
  1324. 'title' => '',
  1325. 'breadcrumb' => '',
  1326. 'default_argument_type' => 'fixed',
  1327. 'default_argument' => '',
  1328. 'validate_type' => 'none',
  1329. 'validate_fail' => 'not found',
  1330. 'glossary' => 0,
  1331. 'limit' => '0',
  1332. 'case' => 'none',
  1333. 'path_case' => 'none',
  1334. 'transform_dash' => 0,
  1335. 'id' => 'field_contact_email_email',
  1336. 'table' => 'node_data_field_contact_email',
  1337. 'field' => 'field_contact_email_email',
  1338. 'validate_user_argument_type' => 'uid',
  1339. 'validate_user_roles' => array(
  1340. '2' => 0,
  1341. '3' => 0,
  1342. '15' => 0,
  1343. '10' => 0,
  1344. '6' => 0,
  1345. '17' => 0,
  1346. '16' => 0,
  1347. '14' => 0,
  1348. '12' => 0,
  1349. '13' => 0,
  1350. '11' => 0,
  1351. '9' => 0,
  1352. '5' => 0,
  1353. '4' => 0,
  1354. '7' => 0,
  1355. '8' => 0,
  1356. ),
  1357. 'override' => array(
  1358. 'button' => 'Use default',
  1359. ),
  1360. 'relationship' => 'none',
  1361. 'default_options_div_prefix' => '',
  1362. 'default_argument_fixed' => '',
  1363. 'default_argument_user' => 0,
  1364. 'default_argument_php' => '',
  1365. 'validate_argument_node_type' => array(
  1366. 'product' => 0,
  1367. 'child' => 0,
  1368. 'venture_payment' => 0,
  1369. 'venture_deposit' => 0,
  1370. 'event' => 0,
  1371. 'donation' => 0,
  1372. 'program' => 0,
  1373. 'project' => 0,
  1374. 'product_kit' => 0,
  1375. 'airline_itinerary' => 0,
  1376. 'book' => 0,
  1377. 'childfamilymember' => 0,
  1378. 'church' => 0,
  1379. 'education' => 0,
  1380. 'excursion' => 0,
  1381. 'family' => 0,
  1382. 'global_banner_image' => 0,
  1383. 'highlighted_content' => 0,
  1384. 'individual' => 0,
  1385. 'interview' => 0,
  1386. 'location' => 0,
  1387. 'medical_incident' => 0,
  1388. 'news' => 0,
  1389. 'note' => 0,
  1390. 'organization' => 0,
  1391. 'page' => 0,
  1392. 'press_release' => 0,
  1393. 'profile' => 0,
  1394. 'resource' => 0,
  1395. 'school' => 0,
  1396. 'staff_blog' => 0,
  1397. 'start_team_form' => 0,
  1398. 'task' => 0,
  1399. 'team_leader_app' => 0,
  1400. 'vc_evaluation' => 0,
  1401. 'venture_log' => 0,
  1402. 'venture_log_national_coordinator' => 0,
  1403. 'venture_participant_evaluation' => 0,
  1404. 'venture_team' => 0,
  1405. 'venture_team_member' => 0,
  1406. 'webform' => 0,
  1407. ),
  1408. 'validate_argument_node_access' => 0,
  1409. 'validate_argument_nid_type' => 'nid',
  1410. 'validate_argument_vocabulary' => array(
  1411. '2' => 0,
  1412. '4' => 0,
  1413. '3' => 0,
  1414. '1' => 0,
  1415. '7' => 0,
  1416. '6' => 0,
  1417. '5' => 0,
  1418. ),
  1419. 'validate_argument_type' => 'tid',
  1420. 'validate_argument_transform' => 0,
  1421. 'validate_user_restrict_roles' => 0,
  1422. 'validate_argument_node_flag_name' => '*relationship*',
  1423. 'validate_argument_node_flag_test' => 'flaggable',
  1424. 'validate_argument_node_flag_id_type' => 'id',
  1425. 'validate_argument_user_flag_name' => '*relationship*',
  1426. 'validate_argument_user_flag_test' => 'flaggable',
  1427. 'validate_argument_user_flag_id_type' => 'id',
  1428. 'validate_argument_signup_status' => 'any',
  1429. 'validate_argument_signup_node_access' => 0,
  1430. 'validate_argument_php' => '',
  1431. ),
  1432. ));
  1433. $handler->override_option('title', 'People filter by email');
  1434. $handler->override_option('path', 'ws/crm/contact_filter_by_email');
  1435. $handler->override_option('menu', array(
  1436. 'type' => 'none',
  1437. 'title' => '',
  1438. 'description' => '',
  1439. 'weight' => 0,
  1440. 'name' => 'navigation',
  1441. ));
  1442. $handler->override_option('tab_options', array(
  1443. 'type' => 'none',
  1444. 'title' => '',
  1445. 'description' => '',
  1446. 'weight' => 0,
  1447. 'name' => 'navigation',
  1448. ));
Add Comment
Please, Sign In to add comment