User: dww Branch: DRUPAL-4-7--2 Date: Wed, 25 Oct 2006 00:33:59 +0000 Added files: /modules/project/release project_release_scan.inc Modified files: /modules/project project.inc project.module /modules/project/release project_release.install project_release.module project_release_update.php Log message: #83339: make releases real nodes (see also #58066 and #75053) release_as_node.patch_5.txt by dww (comment 11): - added a {project_release_projects} table for release-specific data per project - there's a global setting for the version string format that applies when projects don't define their own in the {project_release_projects} table (called 'project_release_default_version_format'). - removed the version string theme function in favor of project_release_get_version() - added project_release_get_version_format(), which returns the active format string for a given project, either from the project object itself, the {project_release_projects} table, the global admin setting, or a hard-coded default if all else fails. - ended up adding a string-only "version" field to {project_release_nodes} to aid in queries in the rest of the project code that are directly trying to match the full version string with LIKE. - added an initial (still mostly untested and probably buggy) hook_access() so that things start to work for uid != 1. ;) - ripped all the release directory scan stuff out and put it in a separate project_release_scan.inc file (which is currently not being included anywhere). - converted some additional queries to {project_release_nodes} instead of {project_releases} - initial attempt (still unsuccessful) to fix the "Download" link on the project overview pages - fixed bug where file_path UI element was incorrectly being hidden when it wasn't really set, yet. - added a bunch more TODO comments where needed Links: http://cvs.drupal.org/diff.php?path=contributions/modules/project/release/pr... http://cvs.drupal.org/diff.php?path=contributions/modules/project/project.in... http://cvs.drupal.org/diff.php?path=contributions/modules/project/project.mo... http://cvs.drupal.org/diff.php?path=contributions/modules/project/release/pr... http://cvs.drupal.org/diff.php?path=contributions/modules/project/release/pr... http://cvs.drupal.org/diff.php?path=contributions/modules/project/release/pr...