Topics

programming

php drupal scheme scheming macros design patterns da la

design

design css

random thoughts

scribbles

alter ego

other me 'em that link us my space me linked in

Collections

Programmable web
PHP design patterns

Similar things

  • drpkg - drupal package manager
  • Relation modules
  • Relations battle plan
  • Relations API - query generation and TODO
  • Relations Battle Plan II and first results
  • drpkg - todo
  • drpkg and relations svn
  • relations update
  • standalone dependency.inc
  • taxonomy filebrowser

Home » blogs » vlado's blog

An initial phase runner for drupal install

Submitted by vlado on Thu, 2005-12-08 08:30.code | drpkg | drupal | projects

I uploaded an initial phase runner, drpkg.inc, and an interface to dependency.inc to the bryght svn.

It is a short and self explanatory file.

drpkg_install_exec($packages,$uri) is the thing to be called by installer routines, where $packages is an array of package name and uri should point to a PACKAGES file.

The code assumes that for each package there is a file in modules|themes|theme_engines for each install phase, called package_name.phase, for example relations.install .

Please discuss this in this drupal forum thread

Opps, I have found an error, need to replace packages with modules in drpkg_load_package

Ther is an alternative method I'm investigating for doing the same job - it relies on a little code generator, so the heavy duty recursion in dependency.inc will happen only once - on code generation, and the rest will just work. But it is not going to be as flexible, faster but adding a new package to PACKAGES, will need a regeneration.

vlado's blog | add new comment
Home » blogs » vlado's blog

dikini.net

spreading confusion by accident since 1970