Commit Graph

78 Commits (8b820834e5c7ee12668c8f3a172dabc3af0455ba)

Author SHA1 Message Date
Dries Buytaert 1c75a210bd - Patch #68926 by chx, jeremy, steven, eaton, webchick, amazon, neil, nedjo et al: an initial install system for Drupal core. 2006-07-13 13:14:25 +00:00
Dries Buytaert 77d695fe56 - Patch #69341 by chx: remove some SQL queries from the Drupal bootstrap process. 2006-06-28 21:18:30 +00:00
Dries Buytaert cf14d26cff - Patch #65801 by Moshe et al: fixed locale initialization slowness. 2006-06-08 21:23:40 +00:00
Neil Drumm 9cff02e91b #61802 by Zen, Double spaced sentences clean up 2006-05-07 00:08:36 +00:00
Gerhard Killesreiter bf8b6a531a #46617, Restore some module listings, partially applied, I've omitted places where I felt that sortign by weight would be wanted.
We can discuss those on the issue. Patch by chx.
2006-02-27 15:04:45 +00:00
Gerhard Killesreiter 9bb285aafa #21084, Node module is not marked "required", but is required by other required modules, patch by Robert Douglass 2006-02-27 14:41:05 +00:00
Dries Buytaert 7f87b19eeb - Patch #42886 by chx: critical feature: allow modules to be reordered. 2006-01-08 12:49:51 +00:00
Dries Buytaert 764f1177ef - Patch #40631 by Chris Johnson: is_array() slower than isset() or empty(). 2005-12-14 20:10:45 +00:00
Dries Buytaert c4fc7f401f - Patch #40886 by chx: fixed problem with recursive/nested node API calls manipulating the same array references. 2005-12-14 18:46:21 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert 4103aada88 - Patch #27645 by Neil: refactor away module_load_all().
"This function is called in one place, so it can be rolled into the calling function. The return value isn't used so we can remove handling of it. This is executed for every non-cached page view, so the smaller code should save a smallish ammount of memory and time."
2005-07-29 07:09:30 +00:00
Dries Buytaert 69a066c4cd - Patch #19895 by Moshe: currently modules can inadvertently load all other modules during the bootstrap. this is easy to do by calling a node_load() or module_invoke_all(). this degrades performance for anonymous users when caching is enabled. With this patch, the module writer will see an php error like "Call to undefined function: drupal_set_html_head()" if this is attempted. basically, unavailable functions are actually reported as unavailable. 2005-04-03 08:03:18 +00:00
Dries Buytaert 456fd7cc85 - Patch #17770 by chx: fixed module_invoke() and module_invoke_all() not to use NULL defaults (bugfix) + removed the limitation on the number of paramaters that can be used. 2005-03-01 20:23:35 +00:00
Dries Buytaert 971a0e24aa - Patch #14731 by chx: made it possible to rewrite node queries. 2005-01-16 18:44:49 +00:00
Steven Wittens beada9364d Remove left-overs from admin.module. 2005-01-14 17:30:00 +00:00
Dries Buytaert 3cd9a1b2d4 - Patch #13405 by Moshe: make you actually do something useful with the init hook. A recent patch to 4.5 and HEAD made this patch run too early in the request (for non-cached pages). 2004-12-01 22:16:50 +00:00
Dries Buytaert 5d0dfeb562 - Patch #13405 by Moshe:
+ Make bootstrap functionality work with HEAD.
   + Move functions into bootstrap.inc so that statistics_exit() works for cached pages.  (Does this close any issues?)
2004-11-25 06:14:59 +00:00
Dries Buytaert 5d759ccbb9 - Patch #5942 by jhriggs and Adrian:
+ added support for multi-site configurations.
    + tidied up some old cruft and added code comments.
2004-11-24 22:44:01 +00:00
Dries Buytaert 3769665b33 - Refactored the throttle module. Patch by Jeremy and me.
* There are only two throttle levels instead of 5, namely 'enabled' and 'disabled'.  This makes it a _lot_ easier to predict when the throttle will kick in.  However, if you maintain a module that is throttle-aware, it needs to be updated!

  * The throttle mechanism now uses the current number of anonymous users or the current number of authenticated users to kick in.  This is a _lot_ more intuitive than the old throttle mechanism.

  * The throttle block has been removed -- you can now use the "Who's online" block to determine the good throttle settings.

  * Most of the documentation has been removed because it was deprecated.

  * It's less code!
2004-11-07 22:47:00 +00:00
Dries Buytaert 10f329c057 - Patch #11728 by Uwe Hermann: fixed some typos in the code comments, Doxygen documentation and screen output.
Uwe: I dropped the 'iff' chunks as 'iff' stands for 'if and only if'.
2004-10-19 18:02:31 +00:00
Dries Buytaert a5691cccc9 - Patch #11600 by jhriggs: the module_load_all() function will currently behave unexpectedly if a module cannot be found (has been removed, renamed, etc). Once one module fails to load, all subsequent modules will not be loaded due to a short circuit condition when performing a boolean AND. 2004-10-15 10:47:54 +00:00
Dries Buytaert b84b6e42cf - Patch #10663 by JonBob: documentation improvements: fixed some typos and improved consistency to the use of Doxygen/api.module commands in the comments. 2004-09-09 05:51:08 +00:00
Steven Wittens 51cf18e531 - #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly broken. 2004-08-22 17:03:42 +00:00
Dries Buytaert 9945bca528 - Patch #9650 by Adrian: this change introduces a module_load function, which maintains a list of modules that have already been loaded in a static array, and will not load another module of the same name, or if the file does not exist.
Modules can be stored anywhere, as there is now a set of functions called module_get_filename, and module_set_filename .. which allow system_listing and module_list to specify the locations of the files.

A new function module_load_all() replaces the hardcoded includes in module_init, and loads all modules which have been enabled, using module_load.

module_listing no longer includes files itself, instead it just keeps the listing (and sets the filenames).

This patch is a requirement for the multisite configuration patch, as overriding modules are currently being loaded due to the only protection of loading them is include_once.
2004-07-31 11:17:27 +00:00
Steven Wittens edc2f13d82 - #9287: More doxygen/documentation fixes by JonBob 2004-07-22 16:06:54 +00:00
Dries Buytaert f63c3be30c - Code and documentation improvements by JonBob. 2004-07-14 20:42:20 +00:00
Dries Buytaert f99eb4dc48 - Fixed bug 5440: sort() -> asort(). Suggested by Goba. 2004-01-27 18:14:25 +00:00
Dries Buytaert 68479ae77c - Fixed bug 5140: Drupal does not work with PHP 4.2.1 and cleaned up the
bootstrap code.  Patch by Kjartan.
2004-01-26 18:55:43 +00:00
Dries Buytaert 652fb3474a - Removed instances of the 'throttle_enable' variable. 2004-01-19 22:11:46 +00:00
Steven Wittens c2151b5248 Committed filter separation patch: all filter-related things are now in filter.module (which is a required module).
To do this cleanly, I reorganised some bits of system.module: there is now a generic handler available for simple variable-get/set based configuration pages. Look at filter_admin() or system_view() for example usage.

(based on the patch by Goba)
2004-01-05 19:19:05 +00:00
Dries Buytaert bea3dbb775 - Patch 0185 by Jeremy: made it possible to automatically disable modules when
under heave load.
2003-12-07 18:25:09 +00:00
Dries Buytaert a0640e66b7 - Improved module loading when serving cached pages. Moshe's bootstrap patch.
- Used legend and fieldset tags for the configuration page.
2003-11-18 19:44:36 +00:00
Dries Buytaert 337b3c9de9 - Committed a slightly modified version of Slavica's table prefix patch. 2003-07-10 17:46:44 +00:00
Kjartan Mannes 94f5eee15a - adding admin module to module_list. 2003-06-06 14:07:45 +00:00
Dries Buytaert a956de78b9 - Fixed some PHP "notices". 2003-04-21 14:55:03 +00:00
Dries Buytaert 4ad174c411 - Eliminated system_init(), the session stuff, and made it possible to
rebuild the menu.
2003-03-12 21:46:14 +00:00
Kjartan Mannes c4cf16dd3d - Removing drupal module from the always loaded modules (again). 2003-03-09 17:28:51 +00:00
Dries Buytaert 89b2069e4d - Clean URL patch. 2003-01-06 19:51:01 +00:00
Dries Buytaert 8f673be382 - Small improvement. Patch by Moshe. 2002-12-21 19:10:47 +00:00
Dries Buytaert 060810841b - Patch by Jeremy to fix a module loading bug:
- module.inc:
       + added call to _init for all modules

    - statistics.module:
       + added statistics_init()
       + moved all global actions into statistics_init()
2002-11-29 05:53:40 +00:00
Kjartan Mannes 4d45f0c777 - changing the sorting algorithm in module_list so it is case insensitive. 2002-11-17 16:26:06 +00:00
Dries Buytaert b3abbc4b54 Patch by Natrak:
- Modules and themes now use the same functions to find and administer
  files.
- Modules can now be placed in sub-directories.
- Theme descriptions can no longer be edited. This will be handled by
  Dries' theme_conf patch.
- Update required to keep old modules enabled.
2002-11-08 13:19:12 +00:00
Dries Buytaert 8d103a0898 - Committed Marco's block rewrite:
+ Blocks are not longer called if not rendered: major performance
     improvement.
   + Fixed some bugs (preview option was broken, path option was broken).
   + Removed "ascii"-type blocks.
   + Added permission to for "PHP blocks"
   + ...

  NOTES:

   + You'll want to run "update.php":

       ALTER TABLE blocks DROP remove;
       ALTER TABLE blocks DROP name;

   + You'll want to update your custom modules as well as the modules in
     the contrib repository.  Block function should now read:

       function *_block($op = "list", $delta = 0) {
         if ($op == "list") {
           return array of block infos
         }
         else {
           return subject and content of $delta block
         }
       }
2002-10-26 15:17:26 +00:00
Kjartan Mannes b60b9ca828 - removed function module_rehash().
- updated database dump.
- removed tables modules, layout and referrer (don't forget to backup!).
2002-10-17 18:34:38 +00:00
Kjartan Mannes 87a6afbbd7 - fixed a bug in module_invoke_all , it will now also add 0's to the result
array. Thanks Moshe. (Didn't I commit this already?)
2002-09-30 08:55:45 +00:00
Dries Buytaert d102bf73e3 - Reverted module.inc to the old module_invoke() function. 2002-08-15 07:14:37 +00:00
Dries Buytaert 343437e750 - "module_invoke()" and "module_invoke_all()" can now be called with any
number of arguments.  Patch by Gerhard.
2002-08-14 17:59:43 +00:00
Kjartan Mannes af7e08b4bd - removing the drupal module as always loaded. 2002-06-27 09:43:30 +00:00
Kjartan Mannes 4a28077f46 - adding descriptions to modules (thanks Joe + Scott).
- fixed comment flat list view missing 1 comment.
- changed update.php around a bit.
    * security check isn't in effect if the db hasn't been updated.
    * instructions re-organized.
    * fixed some minor updates.
- updated database.mysql done by UnConeD.
- changelog update.
2002-06-01 21:57:29 +00:00
Kjartan Mannes 793db8316f - Coding style changes.
- Included modules will now cause parse errors instead of them being supressed.
  Was making debugging really hard.
2002-05-23 19:01:49 +00:00