You are here

API.txt in Nodewords: D6 Meta Tags 6.2

Same filename and directory in other branches
  1. 6.3 API.txt
  2. 6 API.txt
# This file contains a log of changes to the API.

API version 1.1
* The module uses hook_nodewords_tags_info(), and hook_nodewords_api().
* Functions that before were private are now public.

API version 1.3
* The module uses hook_nodewords_type_id().
* The function nodewords_output_tags() has been changed from
  nodewords_output_tags($tags) to
  nodewords_output_tags($tags, $output_type = 'head').
* The function nodewords_unique() has been changed from
  nodewords_unique($text, $max_items = 0, $separator = ',') to
  nodewords_unique($text, $separator = ',', $max_items = -1).

API version 1.4
* The function nodewords_metatag_from_teaser() has been changed from
  nodewords_metatag_from_teaser($text, $format, $alt_attribute, $size = 0) to
  nodewords_metatag_from_teaser($text, $format, $options = array()).

API version 1.5
* Changed the name of the constants from NODEWORDS_MT_TYPE_* to
  NODEWORDS_TYPE_*.

API version 1.6
* Changed the function nodewords_get_tags() from
  nodewords_get_tags($type, $ids = array(''), $filtered = TRUE) to
  nodewords_get_tags($type, $ids = array(''), $options = array()).

API version 1.7
* The module uses hook_nodewords_tags_output_alter().
* The identifier passed to <meta_tag_hander>_settings_form() for the meta tags
  settings form is now the form identifier as used by Drupal
  (nodewords_settings_form).

API version 1.8
* The module uses hook_nodewords_tags_alter().
* The function nodewords_mass_delete_tags() cannot be used to delete meta tags
  associated with custom pages anymore.

API version 1.9
* The function nodewords_metatag_from_teaser($text, $format, $options = array())
  has been replaced by
  nodewords_metatag_from_node_content($node, $content, $options = array()).

API version 1.10
* The function nodewords_mass_update() has been added.

API version 1.11
* All the functions nodewords_pages_*() have been renamed
  nodewords_custom_pages_*().
* A new costant has been introduced (NODEWORDS_TYPE_OFFLINE).
* The function nodewords_get_tags() has been removed.
* The function nodewords_output_tags() is now a private function.
* The function nodewords_unique() has been renamed nodewords_unique_values().
* The parameters for the function nodewords_get_term() have been changed from
  nodewords_get_term($tid) to nodewords_get_term($tid, $account = NULL).
* Added the function nodewords_url($path, $options = array()).

API version 1.12
* The value expected from hook_nodewords_tags_info() has been changed.
* New functions have been added: nodewords_check_api(),
  nodewords_load_include(), nodewords_load_all_includes().
* The function nodewords_form() has been renamed nodewords_tags_edit_fields();
  the first parameter of the function has been changed.
* The function nodewords_replace_tokens() has been added.
* The function nodewords_delete_tags() has been changed from
  nodewords_delete_tags($type, $id) to
  nodewords_delete_tags($options = array()).
* The module uses hook_nodewords_tags_info_alter(), and
  hook_nodewords_delete_tags(), hook_nodewords_tag_permission_alter(), and
  hook_nodewords_default_values_alter().
* The function nodewords_save_tags() has been changed from
  nodewords_save_tags($type, $id, $tags, $log_message = FALSE) to
  nodewords_save_tags($tags, $options = array()).
* The functions nodewords_admin_tags_form*() have been renamed
  nodewords_admin_tags_edit_form*().
* The function nodewords_admin_tags_form() has been changed from
  nodewords_admin_tags_form(&$form_state, $type = NODEWORDS_TYPE_DEFAULT, $id = 0)
  to
  nodewords_admin_tags_edit_form(&$form_state, $options).

API version 1.13
* Renamed hook_nodewords_tag_permission_alter() in
  hook_nodewords_tags_permission_alter().
* Changed the arguments of hook_nodewords_tags_permission_alter() to
  hook_nodewords_tags_permission_alter($permission, $object, $tag_name, $tag_info).

API version 1.14
* Corrected an array index name of the array returned by hook_nodewords_api().
* Renamed theme_nodewords_admin_output_metatags() as
  theme_nodewords_admin_output_fieldset() for compatibility with branch 6.x-3.
* Renamed _nodewords_detect_type_and_id() as
  nodewords_detect_type_id().
* Added the function nodewords_add_tokens_help(&$form, $type).

File

API.txt
View source
  1. # This file contains a log of changes to the API.
  2. API version 1.1
  3. * The module uses hook_nodewords_tags_info(), and hook_nodewords_api().
  4. * Functions that before were private are now public.
  5. API version 1.3
  6. * The module uses hook_nodewords_type_id().
  7. * The function nodewords_output_tags() has been changed from
  8. nodewords_output_tags($tags) to
  9. nodewords_output_tags($tags, $output_type = 'head').
  10. * The function nodewords_unique() has been changed from
  11. nodewords_unique($text, $max_items = 0, $separator = ',') to
  12. nodewords_unique($text, $separator = ',', $max_items = -1).
  13. API version 1.4
  14. * The function nodewords_metatag_from_teaser() has been changed from
  15. nodewords_metatag_from_teaser($text, $format, $alt_attribute, $size = 0) to
  16. nodewords_metatag_from_teaser($text, $format, $options = array()).
  17. API version 1.5
  18. * Changed the name of the constants from NODEWORDS_MT_TYPE_* to
  19. NODEWORDS_TYPE_*.
  20. API version 1.6
  21. * Changed the function nodewords_get_tags() from
  22. nodewords_get_tags($type, $ids = array(''), $filtered = TRUE) to
  23. nodewords_get_tags($type, $ids = array(''), $options = array()).
  24. API version 1.7
  25. * The module uses hook_nodewords_tags_output_alter().
  26. * The identifier passed to _settings_form() for the meta tags
  27. settings form is now the form identifier as used by Drupal
  28. (nodewords_settings_form).
  29. API version 1.8
  30. * The module uses hook_nodewords_tags_alter().
  31. * The function nodewords_mass_delete_tags() cannot be used to delete meta tags
  32. associated with custom pages anymore.
  33. API version 1.9
  34. * The function nodewords_metatag_from_teaser($text, $format, $options = array())
  35. has been replaced by
  36. nodewords_metatag_from_node_content($node, $content, $options = array()).
  37. API version 1.10
  38. * The function nodewords_mass_update() has been added.
  39. API version 1.11
  40. * All the functions nodewords_pages_*() have been renamed
  41. nodewords_custom_pages_*().
  42. * A new costant has been introduced (NODEWORDS_TYPE_OFFLINE).
  43. * The function nodewords_get_tags() has been removed.
  44. * The function nodewords_output_tags() is now a private function.
  45. * The function nodewords_unique() has been renamed nodewords_unique_values().
  46. * The parameters for the function nodewords_get_term() have been changed from
  47. nodewords_get_term($tid) to nodewords_get_term($tid, $account = NULL).
  48. * Added the function nodewords_url($path, $options = array()).
  49. API version 1.12
  50. * The value expected from hook_nodewords_tags_info() has been changed.
  51. * New functions have been added: nodewords_check_api(),
  52. nodewords_load_include(), nodewords_load_all_includes().
  53. * The function nodewords_form() has been renamed nodewords_tags_edit_fields();
  54. the first parameter of the function has been changed.
  55. * The function nodewords_replace_tokens() has been added.
  56. * The function nodewords_delete_tags() has been changed from
  57. nodewords_delete_tags($type, $id) to
  58. nodewords_delete_tags($options = array()).
  59. * The module uses hook_nodewords_tags_info_alter(), and
  60. hook_nodewords_delete_tags(), hook_nodewords_tag_permission_alter(), and
  61. hook_nodewords_default_values_alter().
  62. * The function nodewords_save_tags() has been changed from
  63. nodewords_save_tags($type, $id, $tags, $log_message = FALSE) to
  64. nodewords_save_tags($tags, $options = array()).
  65. * The functions nodewords_admin_tags_form*() have been renamed
  66. nodewords_admin_tags_edit_form*().
  67. * The function nodewords_admin_tags_form() has been changed from
  68. nodewords_admin_tags_form(&$form_state, $type = NODEWORDS_TYPE_DEFAULT, $id = 0)
  69. to
  70. nodewords_admin_tags_edit_form(&$form_state, $options).
  71. API version 1.13
  72. * Renamed hook_nodewords_tag_permission_alter() in
  73. hook_nodewords_tags_permission_alter().
  74. * Changed the arguments of hook_nodewords_tags_permission_alter() to
  75. hook_nodewords_tags_permission_alter($permission, $object, $tag_name, $tag_info).
  76. API version 1.14
  77. * Corrected an array index name of the array returned by hook_nodewords_api().
  78. * Renamed theme_nodewords_admin_output_metatags() as
  79. theme_nodewords_admin_output_fieldset() for compatibility with branch 6.x-3.
  80. * Renamed _nodewords_detect_type_and_id() as
  81. nodewords_detect_type_id().
  82. * Added the function nodewords_add_tokens_help(&$form, $type).