Commit Graph

177 Commits (4335a60b97a0ee0ca6be3e1aec14482e9aaaee8f)

Author SHA1 Message Date
Angie Byron 4d20274076 #253569 by aaron, agentrickard, and Dave Reid: Add hook_modules_X to allow modules to react when other modules are enabled, disabled, installed, or uninstalled. 2008-10-11 22:46:22 +00:00
Angie Byron 289b4f77a6 #229129 follow-up by Arancaytar, chx, and webchick: Instantiate module package property. 2008-09-27 19:03:30 +00:00
Angie Byron a3bb66e4e8 #259623 by dopry and Damien Tournoud: Convert includes/requires to use absolute paths. 2008-09-20 20:22:25 +00:00
Angie Byron 89b4c55989 #64967 follow-up by drewish: Replace ereg with preg in file_scan_directory(). 2008-09-20 03:49:24 +00:00
Dries Buytaert 69e6f411a9 - Patch #225450 by Crell, chx, bjaspan, catch, swentel, recidive et al: next generation database layer for Drupal 7. 2008-08-21 19:36:39 +00:00
Dries Buytaert bbe2e8478b - Patch #296302 by chx: remove PHP 5.1 hack now the minimum requirement is PHP 5.2. 2008-08-17 10:02:55 +00:00
Dries Buytaert 6c1068e48d - Patch #287877 by dmitrig01: rename drupal_rebuild_code_registry() to registry_rebuild() for consistency. 2008-08-02 19:01:02 +00:00
Dries Buytaert addc331232 - Patch #286002 by cwgordon7: removed dead function module_iterate(). 2008-07-23 07:34:34 +00:00
Dries Buytaert 0d54577a9f - Patch #256579 by justinrandell: registry performance optimizations. 2008-05-13 17:38:42 +00:00
Dries Buytaert e4e2205bfe - Patch #221964 by justinrandall: removed left-over code. 2008-05-07 06:39:57 +00:00
Dries Buytaert 2e18cb8924 - Patch #221964 by chx, dopry, webernet, moshe, webchick, justinrandall, flobruit
et al.  Can you say 'registry'?  Drupal now maintains an internal registry of
  all functions or classes in the system, allowing it to lazy-load code files as
  needed (reducing the amount of code that must be parsed on each request). The
  list of included files is cached per menu callback for subsequent loading by
  the menu router. This way, a given page request will have all the code it needs
  but little else, minimizing time spent parsing unneeded code.
2008-05-06 12:18:54 +00:00
Dries Buytaert 76151a8bc9 - Patch #245504 by catch, David_Rothstein, Freso, et al: removed the throttle module from Drupal core. 2008-04-16 11:35:52 +00:00
Dries Buytaert 56d2664a90 - Patch #245115 by kkaefer, John Morahan, JohnAlbin et al: after a long discussion we've decided to make the concatenation operator consistent with the other operators. 2008-04-14 17:48:46 +00:00
Gábor Hojtsy 2d128fc080 #203794 by douggreen: nonexistent dependencies should not be considered on the dependency checker 2007-12-27 12:31:05 +00:00
Gábor Hojtsy 050008410d #194010 by chx: Proper recursive dependency checking and ordering module installation in dependency order, so later installed modules can use previously installed module functionality 2007-12-13 10:46:43 +00:00
Gábor Hojtsy a33b43386d #176003 by yched, KarenS, dvessel: put module installs into a batch, solving the following issues:
- possible timeouts with installing/enabling lots of modules at once in core
 - enable install profiles to have more modules without fear of timeouts on install
 - bootstrap Drupal before each module load, so previously enabled modules are bootstrapped
 - let modules run their hook_requirements() (although actually calling them will be possibly fixed in another patch)
2007-12-08 15:15:25 +00:00
Gábor Hojtsy 333a540f41 #137650 by Darren Oh: allow module_invoke_all() to merge multiple arrays recursively 2007-11-30 09:16:02 +00:00
Dries Buytaert 2db2c039fb - Patch #172950 by webernet: code style fixes. 2007-09-04 21:10:45 +00:00
Gábor Hojtsy 1b658ae850 #144337 by yched: batch support for node access table rebuilding 2007-09-02 14:42:30 +00:00
Gábor Hojtsy 0f845306c2 #151868 by chx: avoid using array_shift() because it takes a lot of time to rehash the array, so indexing the array is more performant, then shifting items one by one 2007-08-30 16:09:50 +00:00
Gábor Hojtsy 6721bc580a #166593 by hswong3i: move literal values out of some core queries to support cross-database compatibility (ie. better SQL parsing and altering options) 2007-08-22 08:36:34 +00:00
Gábor Hojtsy 1163703917 #152926 by dww: Fix hook_system_info_alter() to save the altered data not the original 2007-08-08 20:04:38 +00:00
Dries Buytaert 68ac23cb6e - Patch #165422 by hswong3i: status is an int. Required to make DB2 work. 2007-08-08 07:22:03 +00:00
Dries Buytaert 358fa43c04 - Patch #160263 by Rok Zlender: module_implements() refresh is not working. 2007-07-18 14:10:14 +00:00
Gábor Hojtsy 3fdddd8e4b #152926 by dww: add hook_system_info_alter() to make .info file data modifiable in PHP code 2007-06-27 21:59:33 +00:00
Gábor Hojtsy 8650d5a77a #154949 by Crell and dww: let modules and themes specify a minimum required PHP version, under which they will not be possible to be turned on 2007-06-27 17:54:49 +00:00
Dries Buytaert 3cafffe63f - Killer patch #144765 by bjaspan, frando et al: schema API 1 hits core. Oh, behave. 2007-05-25 12:46:46 +00:00
Dries Buytaert 04b92ccfd8 - Patch #136049 by lyricnz: small performance improvement - removed some redundant fields. 2007-05-07 11:59:40 +00:00
Dries Buytaert 03b4b58e9a - Patch #132018 by Steven et al: add .info files to themes. 2007-04-17 07:19:39 +00:00
Dries Buytaert 07e6bdcdfe - Patch #63881 by kbahey and jakeg: improved Drupal's logging functionality. Added support for external loggers, and included a small syslog module into core. 2007-04-10 10:10:27 +00:00
Dries Buytaert 781235a525 - Patch #108272 by webchick, Ralf et al: improved handling of required modules in install profiles. 2007-02-04 21:20:50 +00:00
Dries Buytaert 05a708fb06 - Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks. 2007-01-31 15:49:26 +00:00
Dries Buytaert 3b543c18f5 - Rollback of E_ALL patch. Too much extra breakage. 2007-01-25 22:14:06 +00:00
Dries Buytaert fd32b42196 - Patch #112715 by webchick et al: fixed some E_ALL errors. 2007-01-25 21:32:07 +00:00
Dries Buytaert 03752e35a4 - Patch #34755 by chx et al: faster menu system. HEAD is temporary broken and there is no upgrade path yet. 2007-01-24 14:48:36 +00:00
Dries Buytaert 54a754e417 - Patch #101379 by ChrisKennedy, neclimdul et al: modules missing .info files wrongly adding empty entries to module page. 2006-12-07 17:03:34 +00:00
Neil Drumm 437a498295 #97271 by Jaza. Ensure that hooks are not invoked for newly-disabled modules. 2006-11-27 23:15:41 +00:00
Neil Drumm a6f6ddcc4a #88030 by beginner. Properly initialize a variable. 2006-11-26 03:22:04 +00:00
Neil Drumm 30d7bd56f7 #93212 by Jaza. Refactor module enabling for greater API avialiablity during hook_enable(). 2006-11-16 08:28:08 +00:00
Neil Drumm 64162b74ad #88843 by lyricnz. Properly check if dependencies are set. 2006-11-07 06:13:01 +00:00
Dries Buytaert af5402ad2a - Patch #88287 by asimmonds, dww et al: installer doesn't support modules outside root/modules directory. Critical bugfix. 2006-10-23 06:45:17 +00:00
Dries Buytaert 18b297abf8 - Patch #81740 by merlinofchaos, webchick, moshe, neclimdul et al: added package support to the modules page. 2006-10-05 15:47:57 +00:00
Steven Wittens f24e304fa3 #84875: Dependency system for core 2006-10-02 16:49:08 +00:00
Dries Buytaert 291c7b8bb1 - Patch #81757 by neclimdul: Remove non private copy of module_parse_meta_file. 2006-08-31 22:12:15 +00:00
Dries Buytaert c64db1da29 - Patch #80952 by earl, webchick, neclimdul et al: .info files 2006-08-31 20:22:37 +00:00
Dries Buytaert cdd120ed20 - Patch #77936 by moshe and rdouglass: pluggable session handling. 2006-08-31 19:52:39 +00:00
Steven Wittens 55eec8f66f #79601: module_exist() -> module_exists() 2006-08-20 05:57:41 +00:00
Dries Buytaert 2c0571b894 - Patch #73961 by m3avrck, timcn, et al: simplify adding CSS in Drupal. 2006-08-03 07:06:36 +00:00
Steven Wittens 38e4c1ae91 #76209: (Eaton et al)
- Make installer code integrate better with module.inc / system.module
- Fix schema version bug when installing core
2006-08-03 01:02:51 +00:00
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
Kjartan Mannes 5592761620 This is a major change to the system, needs more testing!
Committing Changes by Moshe Weitzman:
- admin_user_account(), user_edit(), and user_view() no longer have any
  hard code for authentication modules. instead authentication modules
  implement the _user hook.
- fixed a couple 'help' typos.
- linked the 'REGISTER' text in the login block to the register page.
  this page now advertises DA better if site employs DA.
- admins may now edit everything about a user account (was a feature
  request).
- user #1 may now login immediately, in addition to receiving his
  password via email.

Other changes:
- modules and themes are now enabled/disabled in the administrative /
  settings / modules | themes pages. Requires SQL update and things must
  be enabled before your site returns to normal. TODO: enable all
  functionality. (For now just do UPDATE system SET status = 1;)
- removed $themes from conf.php.
- added a $theme->system() function where theme can specify settings.
  All themes in the Drupal CVS have been updated to use this.
- added _system hook to modules. TODO: update modules to use this.
- changed strange use of sprintf to the usual strtr. The disadvantage of
  sprintf is that it requires translations to keep the string order,
  which may not be possible in all languages.
- an invalid/nonexisting theme in a user profile will now fallback to the
  BaseTheme instead of crashing.
2002-04-14 19:34:04 +00:00