API.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Current API Version: 2.0.8
  2. Please note that the API version is an internal number and does not match release numbers. It is entirely possible that releases will not increase the API version number, and increasing this number too often would burden contrib module maintainers who need to keep up with API changes.
  3. This file contains a log of changes to the API.
  4. API Version 2.0.8
  5. Introduce ctools_class_add().
  6. Introduce ctools_class_remove().
  7. API Version 2.0.7
  8. All ctools object cache database functions can now accept session_id as an optional
  9. argument to facilitate using non-session id keys.
  10. API Version 2.0.6
  11. Introduce a hook to alter the implementors of a certain api via hook_[ctools_api_hook]_alter.
  12. API Version 2.0.5
  13. Introduce ctools_fields_get_fields_by_type().
  14. Add language.inc
  15. Introduce hook_ctools_content_subtype_alter($subtype, $plugin);
  16. API Version 2.0.4
  17. Introduce ctools_form_include_file()
  18. API Version 2.0.3
  19. Introduce ctools_field_invoke_field() and ctools_field_invoke_field_default().
  20. API Version 2.0.2
  21. Introduce ctools_export_crud_load_multiple() and 'load multiple callback' to
  22. export schema.
  23. API Version 2.0.1
  24. Introduce ctools_export_crud_enable(), ctools_export_crud_disable() and
  25. ctools_export_crud_set_status() and requisite changes.
  26. Introduce 'object factory' to export schema, allowing modules to control
  27. how the exportable objects are instantiated.
  28. Introduce 'hook_ctools_math_expression_functions_alter'.
  29. API Version 2.0
  30. Remove the deprecated callback-based behavior of the 'defaults' property on
  31. plugin types; array addition is now the only option. If you need more
  32. complex logic, do it with the 'process' callback.
  33. Introduce a global plugin type registration hook and remove the per-plugin
  34. type magic callbacks.
  35. Introduce $owner . '_' . $api . '_hook_name' allowing modules to use their own
  36. API hook in place of 'hook_ctools_plugin_api'.
  37. Introduce ctools_plugin_api_get_hook() to get the hook name above.
  38. Introduce 'cache defaults' and 'default cache bin' keys to export.inc
  39. Versions prior to 2.0 have been removed from this document. See the D6 version
  40. for that information.