User: jaza Branch: HEAD Date: Sat, 13 May 2006 14:28:36 +0000 Modified files: /modules/category category.inc category.module /modules/category/category_display category_display.module /modules/category/category_export category_export.module /modules/category/category_legacy category_legacy.module /modules/category/category_menu category_menu.module /modules/category/contrib/category_views category_views.module Log message: - Major refactoring of the main category / container node form system. The functions category_form_category() and _category_form_extended() in category.module are gone, and most of the form element definitions inside them have been moved to the new category_get_form() function in category.inc. This function is much more flexible and reusable than its predecessors - it supports supplying a form definition without any default values, and also supports supplying a definition either with or without the 'core node elements' (i.e. title, body, filter format). This function now invokes hook_category() with the 'form' op, and the modules that implement this hook have been cleaned up a bit. Category_transform and the new 'any node type as a category / container' feature now use category_get_form() instead of category_form_category(). - Category_legacy now calls category_get_form() to grab all the form element definitions that it needs for the import forms, and implementations of hook_category_legacy() with the 'import_taxonomy_form' and 'import_book_form' op's now only need to alter the definition given by category_get_form(), if necessary. This means that modules with a hook_category_legacy() implementation no longer need to completely repeat the whole form definition! This has resulted in a huge amount of duplicate form-defining code being removed from almost all modules in the category ecosystem. The category module has just lost a lot of weight. - Changed category_legacy's menu paths back to (being closer to) the old style: they're now 'admin/category/legacy/...', rather than 'admin/category_legacy/...'. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/category/category.... http://cvs.drupal.org/diff.php?path=contributions/modules/category/category.... http://cvs.drupal.org/diff.php?path=contributions/modules/category/category_... http://cvs.drupal.org/diff.php?path=contributions/modules/category/category_... http://cvs.drupal.org/diff.php?path=contributions/modules/category/category_... http://cvs.drupal.org/diff.php?path=contributions/modules/category/category_... http://cvs.drupal.org/diff.php?path=contributions/modules/category/contrib/c...