Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. field_create_field(array(
  2. 'translatable' => '0',
  3. 'entity_types' => array(),
  4. 'settings' => array(
  5. 'allowed_values' => array(
  6. '',
  7. '',
  8. ),
  9. 'allowed_values_function' => '',
  10. ),
  11. 'storage' => array(
  12. 'type' => 'field_sql_storage',
  13. 'settings' => array(),
  14. 'module' => 'field_sql_storage',
  15. 'active' => '1',
  16. 'details' => array(
  17. 'sql' => array(
  18. 'FIELD_LOAD_CURRENT' => array(
  19. 'field_data_field_nav_floating' => array(
  20. 'value' => 'field_nav_floating_value',
  21. ),
  22. ),
  23. 'FIELD_LOAD_REVISION' => array(
  24. 'field_revision_field_nav_floating' => array(
  25. 'value' => 'field_nav_floating_value',
  26. ),
  27. ),
  28. ),
  29. ),
  30. ),
  31. 'foreign keys' => array(),
  32. 'indexes' => array(
  33. 'value' => array(
  34. 'value',
  35. ),
  36. ),
  37. 'field_name' => 'field_nav_floating',
  38. 'type' => 'list_boolean',
  39. 'module' => 'list',
  40. 'active' => '1',
  41. 'locked' => '0',
  42. 'cardinality' => '1',
  43. 'deleted' => '0',
  44. 'columns' => array(
  45. 'value' => array(
  46. 'type' => 'int',
  47. 'not null' => FALSE,
  48. ),
  49. ),
  50. 'bundles' => array(
  51. 'node' => array(
  52. 'isos_hero',
  53. ),
  54. ),
  55. ));
  56. field_create_instance(array(
  57. 'label' => 'Nav Floating',
  58. 'widget' => array(
  59. 'weight' => '10',
  60. 'type' => 'options_onoff',
  61. 'module' => 'options',
  62. 'active' => 1,
  63. 'settings' => array(
  64. 'display_label' => 1,
  65. ),
  66. ),
  67. 'settings' => array(
  68. 'user_register_form' => FALSE,
  69. ),
  70. 'display' => array(
  71. 'default' => array(
  72. 'label' => 'above',
  73. 'type' => 'list_default',
  74. 'settings' => array(),
  75. 'module' => 'list',
  76. 'weight' => 5,
  77. ),
  78. 'teaser' => array(
  79. 'type' => 'hidden',
  80. 'label' => 'above',
  81. 'settings' => array(),
  82. 'weight' => 0,
  83. ),
  84. 'small_teaser' => array(
  85. 'type' => 'hidden',
  86. 'label' => 'above',
  87. 'settings' => array(),
  88. 'weight' => 0,
  89. ),
  90. ),
  91. 'required' => 0,
  92. 'description' => '',
  93. 'default_value' => array(
  94. array(
  95. 'value' => 0,
  96. ),
  97. ),
  98. 'field_name' => 'field_nav_floating',
  99. 'entity_type' => 'node',
  100. 'bundle' => 'xxx',
  101. 'deleted' => '0',
  102. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement