Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.08 KB | None | 0 0
  1. $content['type'] = array (
  2. 'name' => 'Recipe',
  3. 'type' => 'recipe',
  4. 'description' => '',
  5. 'title_label' => 'Recipe Name',
  6. 'body_label' => '',
  7. 'min_word_count' => '0',
  8. 'help' => 'Please only submit your own recipes. ',
  9. 'node_options' =>
  10. array (
  11. 'status' => false,
  12. 'promote' => false,
  13. 'sticky' => false,
  14. 'revision' => false,
  15. ),
  16. 'old_type' => 'recipe',
  17. 'orig_type' => '',
  18. 'module' => 'node',
  19. 'custom' => '1',
  20. 'modified' => '1',
  21. 'locked' => '0',
  22. 'comment' => '2',
  23. 'comment_default_mode' => '4',
  24. 'comment_default_order' => '2',
  25. 'comment_default_per_page' => '50',
  26. 'comment_controls' => '3',
  27. 'comment_anonymous' => 0,
  28. 'comment_subject_field' => '1',
  29. 'comment_preview' => '1',
  30. 'comment_form_location' => '1',
  31. 'fivestar' => 1,
  32. 'fivestar_stars' => '5',
  33. 'fivestar_labels_enable' => 1,
  34. 'fivestar_label_0' => 'Cancel rating',
  35. 'fivestar_label_1' => 'Poor',
  36. 'fivestar_label_2' => 'Okay',
  37. 'fivestar_label_3' => 'Good',
  38. 'fivestar_label_4' => 'Great',
  39. 'fivestar_label_5' => 'Awesome',
  40. 'fivestar_label_6' => 'Give it @star/@count',
  41. 'fivestar_label_7' => 'Give it @star/@count',
  42. 'fivestar_label_8' => 'Give it @star/@count',
  43. 'fivestar_label_9' => 'Give it @star/@count',
  44. 'fivestar_label_10' => 'Give it @star/@count',
  45. 'fivestar_style' => 'dual',
  46. 'fivestar_text' => 'dual',
  47. 'fivestar_title' => 1,
  48. 'fivestar_feedback' => 1,
  49. 'fivestar_unvote' => 0,
  50. 'fivestar_position_teaser' => 'hidden',
  51. 'fivestar_position' => 'below_static',
  52. 'fivestar_comment' => '2',
  53. 'print_display' => 1,
  54. 'print_display_comment' => 0,
  55. 'print_display_urllist' => 1,
  56. 'print_mail_display' => 1,
  57. 'print_mail_display_comment' => 0,
  58. 'print_mail_display_urllist' => 0,
  59. );
  60. $content['fields'] = array (
  61. 0 =>
  62. array (
  63. 'label' => 'Picture',
  64. 'field_name' => 'field_recipe_image',
  65. 'type' => 'filefield',
  66. 'widget_type' => 'imagefield_widget',
  67. 'change' => 'Change basic information',
  68. 'weight' => '-4',
  69. 'file_extensions' => 'png gif jpg jpeg',
  70. 'progress_indicator' => 'bar',
  71. 'file_path' => 'recipes/[user-raw]',
  72. 'max_filesize_per_file' => '',
  73. 'max_filesize_per_node' => '',
  74. 'max_resolution' => '640x480',
  75. 'min_resolution' => 0,
  76. 'custom_alt' => 1,
  77. 'alt' => '',
  78. 'custom_title' => 0,
  79. 'title_type' => 'textfield',
  80. 'title' => '',
  81. 'use_default_image' => 0,
  82. 'default_image_upload' => '',
  83. 'default_image' => NULL,
  84. 'description' => 'Add a picture of the completed dish. Instruction images should be added in the Directions area below.',
  85. 'group' => false,
  86. 'required' => 0,
  87. 'multiple' => '0',
  88. 'list_field' => '0',
  89. 'list_default' => 1,
  90. 'description_field' => '0',
  91. 'op' => 'Save field settings',
  92. 'module' => 'filefield',
  93. 'widget_module' => 'imagefield',
  94. 'columns' =>
  95. array (
  96. 'fid' =>
  97. array (
  98. 'type' => 'int',
  99. 'not null' => false,
  100. 'views' => true,
  101. ),
  102. 'list' =>
  103. array (
  104. 'type' => 'int',
  105. 'size' => 'tiny',
  106. 'not null' => false,
  107. 'views' => true,
  108. ),
  109. 'data' =>
  110. array (
  111. 'type' => 'text',
  112. 'serialize' => true,
  113. 'views' => true,
  114. ),
  115. ),
  116. 'display_settings' =>
  117. array (
  118. 'label' =>
  119. array (
  120. 'format' => 'above',
  121. 'exclude' => 0,
  122. ),
  123. 'teaser' =>
  124. array (
  125. 'format' => 'image_plain',
  126. 'exclude' => 0,
  127. ),
  128. 'full' =>
  129. array (
  130. 'format' => 'image_plain',
  131. 'exclude' => 0,
  132. ),
  133. 4 =>
  134. array (
  135. 'format' => 'image_plain',
  136. 'exclude' => 0,
  137. ),
  138. 5 =>
  139. array (
  140. 'format' => 'image_plain',
  141. 'exclude' => 0,
  142. ),
  143. 'token' =>
  144. array (
  145. 'format' => 'image_plain',
  146. 'exclude' => 0,
  147. ),
  148. ),
  149. ),
  150. 1 =>
  151. array (
  152. 'label' => 'Ingredients',
  153. 'field_name' => 'field_recipe_ingredients',
  154. 'type' => 'text',
  155. 'widget_type' => 'text_textfield',
  156. 'change' => 'Change basic information',
  157. 'weight' => '-2',
  158. 'rows' => 5,
  159. 'size' => '60',
  160. 'description' => 'Add an ingredient. Please refer to the key for help with standard measurement abbreviations.',
  161. 'default_value' =>
  162. array (
  163. 0 =>
  164. array (
  165. 'value' => '',
  166. '_error_element' => 'default_value_widget][field_recipe_ingredients][0][value',
  167. ),
  168. ),
  169. 'default_value_php' => '',
  170. 'default_value_widget' =>
  171. array (
  172. 'field_recipe_ingredients' =>
  173. array (
  174. 0 =>
  175. array (
  176. 'value' => '',
  177. '_error_element' => 'default_value_widget][field_recipe_ingredients][0][value',
  178. ),
  179. ),
  180. ),
  181. 'group' => false,
  182. 'required' => 1,
  183. 'multiple' => '1',
  184. 'text_processing' => '0',
  185. 'max_length' => '',
  186. 'allowed_values' => '',
  187. 'allowed_values_php' => '',
  188. 'op' => 'Save field settings',
  189. 'module' => 'text',
  190. 'widget_module' => 'text',
  191. 'columns' =>
  192. array (
  193. 'value' =>
  194. array (
  195. 'type' => 'text',
  196. 'size' => 'big',
  197. 'not null' => false,
  198. 'sortable' => true,
  199. 'views' => true,
  200. ),
  201. ),
  202. 'display_settings' =>
  203. array (
  204. 'label' =>
  205. array (
  206. 'format' => 'above',
  207. 'exclude' => 0,
  208. ),
  209. 'teaser' =>
  210. array (
  211. 'format' => 'default',
  212. 'exclude' => 0,
  213. ),
  214. 'full' =>
  215. array (
  216. 'format' => 'default',
  217. 'exclude' => 0,
  218. ),
  219. 4 =>
  220. array (
  221. 'format' => 'default',
  222. 'exclude' => 0,
  223. ),
  224. 5 =>
  225. array (
  226. 'format' => 'default',
  227. 'exclude' => 0,
  228. ),
  229. 'token' =>
  230. array (
  231. 'format' => 'default',
  232. 'exclude' => 0,
  233. ),
  234. ),
  235. ),
  236. 2 =>
  237. array (
  238. 'label' => 'Preparation Time',
  239. 'field_name' => 'field_recipe_preptime',
  240. 'type' => 'text',
  241. 'widget_type' => 'text_textfield',
  242. 'change' => 'Change basic information',
  243. 'weight' => '-1',
  244. 'rows' => 5,
  245. 'size' => '60',
  246. 'description' => '',
  247. 'default_value' =>
  248. array (
  249. 0 =>
  250. array (
  251. 'value' => '',
  252. '_error_element' => 'default_value_widget][field_recipe_preptime][0][value',
  253. ),
  254. ),
  255. 'default_value_php' => '',
  256. 'default_value_widget' =>
  257. array (
  258. 'field_recipe_preptime' =>
  259. array (
  260. 0 =>
  261. array (
  262. 'value' => '',
  263. '_error_element' => 'default_value_widget][field_recipe_preptime][0][value',
  264. ),
  265. ),
  266. ),
  267. 'group' => false,
  268. 'required' => 0,
  269. 'multiple' => '0',
  270. 'text_processing' => '0',
  271. 'max_length' => '',
  272. 'allowed_values' => '',
  273. 'allowed_values_php' => '',
  274. 'op' => 'Save field settings',
  275. 'module' => 'text',
  276. 'widget_module' => 'text',
  277. 'columns' =>
  278. array (
  279. 'value' =>
  280. array (
  281. 'type' => 'text',
  282. 'size' => 'big',
  283. 'not null' => false,
  284. 'sortable' => true,
  285. 'views' => true,
  286. ),
  287. ),
  288. 'display_settings' =>
  289. array (
  290. 'label' =>
  291. array (
  292. 'format' => 'above',
  293. 'exclude' => 0,
  294. ),
  295. 'teaser' =>
  296. array (
  297. 'format' => 'default',
  298. 'exclude' => 0,
  299. ),
  300. 'full' =>
  301. array (
  302. 'format' => 'default',
  303. 'exclude' => 0,
  304. ),
  305. 4 =>
  306. array (
  307. 'format' => 'default',
  308. 'exclude' => 0,
  309. ),
  310. 5 =>
  311. array (
  312. 'format' => 'default',
  313. 'exclude' => 0,
  314. ),
  315. 'token' =>
  316. array (
  317. 'format' => 'default',
  318. 'exclude' => 0,
  319. ),
  320. ),
  321. ),
  322. 3 =>
  323. array (
  324. 'label' => 'Cooking Time',
  325. 'field_name' => 'field_recipe_cooktime',
  326. 'type' => 'text',
  327. 'widget_type' => 'text_textfield',
  328. 'change' => 'Change basic information',
  329. 'weight' => 0,
  330. 'rows' => 5,
  331. 'size' => '60',
  332. 'description' => '',
  333. 'default_value' =>
  334. array (
  335. 0 =>
  336. array (
  337. 'value' => '',
  338. '_error_element' => 'default_value_widget][field_recipe_cooktime][0][value',
  339. ),
  340. ),
  341. 'default_value_php' => '',
  342. 'default_value_widget' =>
  343. array (
  344. 'field_recipe_cooktime' =>
  345. array (
  346. 0 =>
  347. array (
  348. 'value' => '',
  349. '_error_element' => 'default_value_widget][field_recipe_cooktime][0][value',
  350. ),
  351. ),
  352. ),
  353. 'group' => false,
  354. 'required' => 0,
  355. 'multiple' => '0',
  356. 'text_processing' => '0',
  357. 'max_length' => '',
  358. 'allowed_values' => '',
  359. 'allowed_values_php' => '',
  360. 'op' => 'Save field settings',
  361. 'module' => 'text',
  362. 'widget_module' => 'text',
  363. 'columns' =>
  364. array (
  365. 'value' =>
  366. array (
  367. 'type' => 'text',
  368. 'size' => 'big',
  369. 'not null' => false,
  370. 'sortable' => true,
  371. 'views' => true,
  372. ),
  373. ),
  374. 'display_settings' =>
  375. array (
  376. 'label' =>
  377. array (
  378. 'format' => 'above',
  379. 'exclude' => 0,
  380. ),
  381. 'teaser' =>
  382. array (
  383. 'format' => 'default',
  384. 'exclude' => 0,
  385. ),
  386. 'full' =>
  387. array (
  388. 'format' => 'default',
  389. 'exclude' => 0,
  390. ),
  391. 4 =>
  392. array (
  393. 'format' => 'default',
  394. 'exclude' => 0,
  395. ),
  396. 5 =>
  397. array (
  398. 'format' => 'default',
  399. 'exclude' => 0,
  400. ),
  401. 'token' =>
  402. array (
  403. 'format' => 'default',
  404. 'exclude' => 0,
  405. ),
  406. ),
  407. ),
  408. 4 =>
  409. array (
  410. 'label' => 'Yield',
  411. 'field_name' => 'field_recipe_yield',
  412. 'type' => 'text',
  413. 'widget_type' => 'text_textfield',
  414. 'change' => 'Change basic information',
  415. 'weight' => '1',
  416. 'rows' => 5,
  417. 'size' => '60',
  418. 'description' => '',
  419. 'default_value' =>
  420. array (
  421. 0 =>
  422. array (
  423. 'value' => '',
  424. '_error_element' => 'default_value_widget][field_recipe_yield][0][value',
  425. ),
  426. ),
  427. 'default_value_php' => '',
  428. 'default_value_widget' =>
  429. array (
  430. 'field_recipe_yield' =>
  431. array (
  432. 0 =>
  433. array (
  434. 'value' => '',
  435. '_error_element' => 'default_value_widget][field_recipe_yield][0][value',
  436. ),
  437. ),
  438. ),
  439. 'group' => false,
  440. 'required' => 0,
  441. 'multiple' => '0',
  442. 'text_processing' => '0',
  443. 'max_length' => '',
  444. 'allowed_values' => '',
  445. 'allowed_values_php' => '',
  446. 'op' => 'Save field settings',
  447. 'module' => 'text',
  448. 'widget_module' => 'text',
  449. 'columns' =>
  450. array (
  451. 'value' =>
  452. array (
  453. 'type' => 'text',
  454. 'size' => 'big',
  455. 'not null' => false,
  456. 'sortable' => true,
  457. 'views' => true,
  458. ),
  459. ),
  460. 'display_settings' =>
  461. array (
  462. 'label' =>
  463. array (
  464. 'format' => 'above',
  465. 'exclude' => 0,
  466. ),
  467. 'teaser' =>
  468. array (
  469. 'format' => 'default',
  470. 'exclude' => 0,
  471. ),
  472. 'full' =>
  473. array (
  474. 'format' => 'default',
  475. 'exclude' => 0,
  476. ),
  477. 4 =>
  478. array (
  479. 'format' => 'default',
  480. 'exclude' => 0,
  481. ),
  482. 5 =>
  483. array (
  484. 'format' => 'default',
  485. 'exclude' => 0,
  486. ),
  487. 'token' =>
  488. array (
  489. 'format' => 'default',
  490. 'exclude' => 0,
  491. ),
  492. ),
  493. ),
  494. 5 =>
  495. array (
  496. 'label' => 'Directions',
  497. 'field_name' => 'field_recipe_directions',
  498. 'type' => 'text',
  499. 'widget_type' => 'text_textarea',
  500. 'change' => 'Change basic information',
  501. 'weight' => '2',
  502. 'rows' => '5',
  503. 'size' => 60,
  504. 'description' => '',
  505. 'default_value' =>
  506. array (
  507. 0 =>
  508. array (
  509. 'value' => '',
  510. '_error_element' => 'default_value_widget][field_recipe_directions][0][value',
  511. ),
  512. ),
  513. 'default_value_php' => '',
  514. 'default_value_widget' =>
  515. array (
  516. 'field_recipe_directions' =>
  517. array (
  518. 0 =>
  519. array (
  520. 'value' => '',
  521. '_error_element' => 'default_value_widget][field_recipe_directions][0][value',
  522. 'format' => 1,
  523. ),
  524. ),
  525. ),
  526. 'group' => false,
  527. 'required' => 1,
  528. 'multiple' => '0',
  529. 'text_processing' => '1',
  530. 'max_length' => '',
  531. 'allowed_values' => '',
  532. 'allowed_values_php' => '',
  533. 'op' => 'Save field settings',
  534. 'module' => 'text',
  535. 'widget_module' => 'text',
  536. 'columns' =>
  537. array (
  538. 'value' =>
  539. array (
  540. 'type' => 'text',
  541. 'size' => 'big',
  542. 'not null' => false,
  543. 'sortable' => true,
  544. 'views' => true,
  545. ),
  546. 'format' =>
  547. array (
  548. 'type' => 'int',
  549. 'unsigned' => true,
  550. 'not null' => false,
  551. 'views' => false,
  552. ),
  553. ),
  554. 'display_settings' =>
  555. array (
  556. 'label' =>
  557. array (
  558. 'format' => 'above',
  559. 'exclude' => 0,
  560. ),
  561. 'teaser' =>
  562. array (
  563. 'format' => 'default',
  564. 'exclude' => 0,
  565. ),
  566. 'full' =>
  567. array (
  568. 'format' => 'default',
  569. 'exclude' => 0,
  570. ),
  571. 4 =>
  572. array (
  573. 'format' => 'default',
  574. 'exclude' => 0,
  575. ),
  576. 5 =>
  577. array (
  578. 'format' => 'default',
  579. 'exclude' => 0,
  580. ),
  581. 'token' =>
  582. array (
  583. 'format' => 'default',
  584. 'exclude' => 0,
  585. ),
  586. ),
  587. ),
  588. 6 =>
  589. array (
  590. 'label' => 'Notes',
  591. 'field_name' => 'field_recipe_notes',
  592. 'type' => 'text',
  593. 'widget_type' => 'text_textarea',
  594. 'change' => 'Change basic information',
  595. 'weight' => '3',
  596. 'rows' => '5',
  597. 'size' => 60,
  598. 'description' => 'Any extra information about your recipe. History, warnings, what beer goes well with it, etc.',
  599. 'default_value' =>
  600. array (
  601. 0 =>
  602. array (
  603. 'value' => '',
  604. '_error_element' => 'default_value_widget][field_recipe_notes][0][value',
  605. ),
  606. ),
  607. 'default_value_php' => '',
  608. 'default_value_widget' =>
  609. array (
  610. 'field_recipe_notes' =>
  611. array (
  612. 0 =>
  613. array (
  614. 'value' => '',
  615. '_error_element' => 'default_value_widget][field_recipe_notes][0][value',
  616. 'format' => 1,
  617. ),
  618. ),
  619. ),
  620. 'group' => false,
  621. 'required' => 0,
  622. 'multiple' => '0',
  623. 'text_processing' => '1',
  624. 'max_length' => '',
  625. 'allowed_values' => '',
  626. 'allowed_values_php' => '',
  627. 'op' => 'Save field settings',
  628. 'module' => 'text',
  629. 'widget_module' => 'text',
  630. 'columns' =>
  631. array (
  632. 'value' =>
  633. array (
  634. 'type' => 'text',
  635. 'size' => 'big',
  636. 'not null' => false,
  637. 'sortable' => true,
  638. 'views' => true,
  639. ),
  640. 'format' =>
  641. array (
  642. 'type' => 'int',
  643. 'unsigned' => true,
  644. 'not null' => false,
  645. 'views' => false,
  646. ),
  647. ),
  648. 'display_settings' =>
  649. array (
  650. 'label' =>
  651. array (
  652. 'format' => 'above',
  653. 'exclude' => 0,
  654. ),
  655. 'teaser' =>
  656. array (
  657. 'format' => 'default',
  658. 'exclude' => 0,
  659. ),
  660. 'full' =>
  661. array (
  662. 'format' => 'default',
  663. 'exclude' => 0,
  664. ),
  665. 4 =>
  666. array (
  667. 'format' => 'default',
  668. 'exclude' => 0,
  669. ),
  670. 5 =>
  671. array (
  672. 'format' => 'default',
  673. 'exclude' => 0,
  674. ),
  675. 'token' =>
  676. array (
  677. 'format' => 'default',
  678. 'exclude' => 0,
  679. ),
  680. ),
  681. ),
  682. );
  683. $content['extra'] = array (
  684. 'title' => '-5',
  685. 'revision_information' => '7',
  686. 'author' => '6',
  687. 'options' => '8',
  688. 'comment_settings' => '9',
  689. 'menu' => '4',
  690. 'taxonomy' => '-3',
  691. 'path' => '11',
  692. 'workflow' => '5',
  693. 'print' => '10',
  694. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement