materio_user_profiles.features.inc 931 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * materio_user_profiles.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function materio_user_profiles_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "strongarm" && $api == "strongarm") {
  11. return array("version" => "1");
  12. }
  13. }
  14. /**
  15. * Implements hook_default_profile2_type().
  16. */
  17. function materio_user_profiles_default_profile2_type() {
  18. $items = array();
  19. $items['adherent'] = entity_import('profile2_type', '{
  20. "userCategory" : true,
  21. "userView" : true,
  22. "type" : "adherent",
  23. "label" : "Member Profile",
  24. "weight" : "0",
  25. "data" : { "registration" : 0, "use_page" : 0 }
  26. }');
  27. $items['contact_operationnel'] = entity_import('profile2_type', '{
  28. "userCategory" : true,
  29. "userView" : true,
  30. "type" : "contact_operationnel",
  31. "label" : "Contact Profile",
  32. "weight" : "0",
  33. "data" : { "registration" : 0 }
  34. }');
  35. return $items;
  36. }