materio_user_profiles.features.inc 705 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * materio_user_profiles.features.inc
  5. */
  6. /**
  7. * Implements hook_default_profile2_type().
  8. */
  9. function materio_user_profiles_default_profile2_type() {
  10. $items = array();
  11. $items['adherent'] = entity_import('profile2_type', '{
  12. "userCategory" : true,
  13. "userView" : true,
  14. "type" : "adherent",
  15. "label" : "Member Profile",
  16. "weight" : "0",
  17. "data" : { "registration" : 0, "use_page" : 0 }
  18. }');
  19. $items['contact_operationnel'] = entity_import('profile2_type', '{
  20. "userCategory" : true,
  21. "userView" : true,
  22. "type" : "contact_operationnel",
  23. "label" : "Contact Profile",
  24. "weight" : "0",
  25. "data" : { "registration" : 0 }
  26. }');
  27. return $items;
  28. }