summaryrefslogtreecommitdiff
path: root/modules/system.module
Commit message (Collapse)AuthorAge
* Theme system bug: only show search box if search.module is enabled.Steven Wittens2004-10-14
|
* #11503: (more) missing t()Steven Wittens2004-10-12
|
* - Simplified/reorganized version of patch #9620 by Jeremy: fixed errors when ↵Dries Buytaert2004-10-04
| | | | writing to cache.
* - Patch #11001 by Philippe: added support for dates in ISO-8601 format.Dries Buytaert2004-09-22
|
* - Patch #10730 by Adrian: made it possible to upload a logo.Dries Buytaert2004-09-21
|
* #10441: Splitting up upload permissions in 2: one for uploading and one for ↵Steven Wittens2004-09-19
| | | | viewing/downloading. It does not make sense to only allow downloading for people who can upload themselves.
* #9292: Minor PHP 5 fixes.Steven Wittens2004-09-19
|
* - Patch #8179 by JonBob: reintroduced menu caching.Dries Buytaert2004-09-16
|
* - Renamed the 'first day of week' setting to be more consistent with the ↵Dries Buytaert2004-09-12
| | | | other date settings.
* - Patch #10668 by drumm: moved the 'first day of week' settings to the ↵Dries Buytaert2004-09-12
| | | | system module for other modules to reuse. This is considered to be a usability improvement because it simplifies some pages/workflow.
* Typo: "are be"Steven Wittens2004-09-11
|
* - Decode node type to userfriendly name.Kjartan Mannes2004-09-06
|
* Patch by me and Kjartan.Steven Wittens2004-08-24
| | | | | | | | | | | | Upload.module - Fixing a bug caused by the PHP5 patches. Beware: PHP4's array_merge() will silently accept objects and convert them to arrays. We should not depend on this behaviour in the future. File.inc / file-using modules: - Removing the constant FILE_SEPARATOR: forward slashes work fine on Windows, and it was being used incorrectly as an URL separator sometimes. - Adding @ to mkdir and chmod to supress ugly PHP errors. They are already reported with drupal_set_message(). - Fixing default for variable 'file_directory_temp'. - Clarifying the help tip for 'file_directory_temp' in admin > settings.
* - #9576: Patch by TDobes, only allow the user to choose between enabled themes.Steven Wittens2004-08-22
|
* - Patch #9576 by TDobes: bugfix: fixed bug in recent theme system changes.Dries Buytaert2004-08-21
|
* - Patch by JonBob: for consistency and readability, add brief descriptions ↵Dries Buytaert2004-08-21
| | | | of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks.
* - Patch by TDobes: bugfix: fixed a typo.Dries Buytaert2004-08-21
|
* - Fixing 'flash of unstyled content' in bluemarine/pushbutton, which got ↵Steven Wittens2004-08-20
| | | | | | | | reintroduced after the template changes. - Fixed separate styles: added theme_get_styles() and the xtemplate {styles} tag to make sure stylesheets get included in the right order (drupal-specific, template-specific, style-specific). - Fixing missing class on screenshots. - Renamed drupal_get_theme_setting() and drupal_get_theme_settings() to theme_get_setting() and theme_get_settings().
* - Usability improvement: changed 'Status' to 'Enabled' because that is whatDries Buytaert2004-08-20
| | | | we use elsewhere.
* - Theme system changes. Please consult http://drupal.org/node/view/9576 for ↵Dries Buytaert2004-08-20
| | | | details.
* - Code improvements by Stefan: use capital letters for header titles (and ↵Dries Buytaert2004-08-19
| | | | added some missing t() functions).
* - The upload (filehandler) module has landed!Dries Buytaert2004-08-17
|
* - Patch #9983 by Stefan: usability improvement: made sure all status ↵Dries Buytaert2004-08-16
| | | | messages start with a capital letter.
* #10013: Rolling back accidental commit of Adrian's template system changes ↵Steven Wittens2004-08-14
| | | | (got in through the code style improvements patch).
* - Patch #9983 by Stefan: various code style improvements.Dries Buytaert2004-08-12
|
* - Patch #8155 by JonBob: removed legacy _system() hook.Dries Buytaert2004-08-10
|
* The Input formats - filter patch has landed. I still need to make update ↵Steven Wittens2004-08-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instructions for modules and update the hook docs. Here's an overview of the changes: 1) Multiple Input formats: they are complete filter configurations (what filters to use, in what order and with which settings). Input formats are admin-definable, and usage of them is role-dependant. For example, you can set it up so that regular users can only use limited HTML, while admins can free HTML without any tag limitations. The input format can be chosen per content item (nodes, comments, blocks, ...) when you add/edit them. If only a single format is available, there is no choice, and nothing changes with before. The default install (and the upgrade) contains a basic set of formats which should satisfy the average user's needs. 2) Filters have toggles Because now you might want to enable a filter only on some input formats, an explicit toggle is provided by the filter system. Modules do not need to worry about it and filters that still have their own on/off switch should get rid of it. 3) Multiple filters per module This was necessary to accomodate the next change, and it's also a logical extension of the filter system. 4) Embedded PHP is now a filter Thanks to the multiple input formats, I was able to move the 'embedded PHP' feature from block.module, page.module and book.module into a simple filter which executes PHP code. This filter is part of filter.module, and by default there is an input format 'PHP', restricted to the administrator only, which contains this filter. This change means that block.module now passes custom block contents through the filter system. As well as from reducing code duplication and avoiding two type selectors for page/book nodes, you can now combine PHP code with other filters. 5) User-supplied PHP code now requires <?php ?> tags. This is required for teasers to work with PHP code. Because PHP evaluation is now just another step in the filter process, we can't do this. Also, because teasers are generated before filtering, this would result in errors when the teaser generation would cut off a piece of PHP code. Also, regular PHP syntax explicitly includes the <?php ?> tags for PHP files, so it makes sense to use the same convention for embedded PHP in Drupal. 6) Filter caching was added. Benchmarking shows that even for a simple setup (basic html filtering + legacy URL rewriting), filtercache can offer speedups. Unlike the old filtercache, this uses the normal cache table. 7) Filtertips were moved from help into a hook_filter_tips(). This was required to accomodate the fact that there are multiple filters per module, and that filter settings are format dependant. Shoehorning filter tips into _help was ugly and silly. The display of the filter tips is done through the input format selector, so filter_tips_short() no longer exists. 8) A more intelligent linebreak convertor was added, which doesn't stop working if you use block-level tags and which adds <p> tags.
* #7646 and more:Steven Wittens2004-08-10
| | | | | - Users who have not edited their account yet would be reset to GMT rather than the sitewide timezone. - Users who chose GMT (zero timezone) on a site with a non-zero timezone as default would have incorrect timezone.
* #8154 - Default user timezone to site timezoneSteven Wittens2004-08-06
|
* - Patch #9657: more intelligent theme() function. Hopefully, Adrian will beDries Buytaert2004-08-04
| | | | able to use this patch too.
* - Patch #9650 by Adrian: this change introduces a module_load function, ↵Dries Buytaert2004-07-31
| | | | | | | | | | | | 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.
* System.module improvements:Steven Wittens2004-07-22
| | | | | - #8193: Moving the two instances of the timezone list into a function. - #3859: Adding drupal_goto for module/theme/settings pages. Aside from general drupal_goto usability, this fixes the bug of menu items not immediately appearing after enabling a module.
* Fixed a bug caused by inverting the setting for configurable timezones.Steven Wittens2004-07-09
|
* - Patch #8509 by Killes and Steven: added support for sending compressedDries Buytaert2004-07-08
| | | | pages. Useful to reduce your site's bandwidth.
* - Fixed braino. Reported by Steven.Dries Buytaert2004-07-08
|
* - Usability improvements: reworked/simplified the timezone/date settings aDries Buytaert2004-07-07
| | | | little and made the form groups use consistent titles.
* - Usability: improved the error reporting of the file system settings on theDries Buytaert2004-07-07
| | | | 'home » administer » settings" page.
* - Moving the title.module from core to contrib as discussed on the mailing list.Dries Buytaert2004-07-07
|
* - Patch by Steven and me: refactored the form handling of nodes. The node ↵Dries Buytaert2004-07-04
| | | | | | | | system is now using form_set_error() and friends like the rest of Drupal does. This makes for both a consistent user experience and consistent code. It simplifies the forms and validation code, however, it does change the node API slightly: * The _validate hook and the _nodeapi('validate') hook of the node API (1) no longer take an 'error' parameter and (2) should no longer return an error array. To set an error, call form_set_error(). * The _form hook of the node module no longer takes a form hook and should not worry about displaying errors. Ditto for _nodeapi('form_post') and _nodeapi('form_pre').
* I refactored quite a bit of the user.module:Dries Buytaert2004-06-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ diffstat user.patch database/database.mysql | 4 database/database.pgsql | 2 database/updates.inc | 10 - modules/block.module | 20 +- modules/locale.module | 9 modules/profile.module | 108 +++++++---- modules/system.module | 8 modules/user.module | 456 +++++++++++++++++++----------------------------- 8 files changed, 289 insertions(+), 328 deletions(-) More functionality, less code. Here is a list of the changes: - Some user API changes: + When $type is 'form', you have to return an associative array of groups. In turn, each group is an array with a 'title', 'data' and 'weight'. + A new $type has been added, namely 'categories'. User settings can be organized in categories. Categories can be sorted, as can the groups within a category. (Ordering 'categories' is somewhat broken due to a bug in the menu system.) - The 'my account > edit' page will use subtabs for each 'category'. Read: you can break down the account settings into multiple subpages. - Profile module improvements: + Added support for private fields to the profile module! + Improved workflow of profile administration pages. + Improved the form descriptions. - Code improvements: + Unified user_edit() and user_admin_edit(). + Unified and cleaned up the validation code. Fixed some validation glitches too.
* - Patch #8681 by stefan: fixed some broken URLs and help texts.Dries Buytaert2004-06-20
|
* - Patch #8670 by asimmonds: spelling fixes.Dries Buytaert2004-06-20
|
* Tabs patch!Dries Buytaert2004-06-18
| | | | | | | | | | | | | | | | | | CHANGES ------- + Introduced tabs. First, we extended the menu system to support tabs. Next, a tab was added for every link that was (1) an administrative action other than the implicit 'view' (2) relevant to that particular page only. This is illustrated by the fact that all tabs are verbs and that clicking a page's tab leads you to a subpage of that page. + Flattened the administration menu. The tabs helped simplify the navigation menu as I could separate 'actions' from 'navigation'. In addition, I removed the 'administer > configuration'-menu, renamed 'blocks' to 'sidebars' which I hope is a bit more descriptive, and made a couple more changes. Earlier, we already renamed 'taxonomy' to 'categorization' and we move 'statistics' under 'logs'. + Grouped settings. All settings have been grouped under 'administer > settings'. TODO ---- + Update core themes: only Xtemplate default supports tabs and even those look ugly. Need help. + Update contributed modules. The menu() hook changed drastically. Updating your code adhere the new menu() function should be 90% of the work. Moreover, ensure that your modue's admin links are still valid and that URLs to node get updated to the new scheme ('node/view/x' -> 'node/x').
* - Patch #7483 by Gerhard: system_user should not return $edit.Dries Buytaert2004-05-01
|
* - Fixed sitewide timezone settings not being saved.Kjartan Mannes2004-04-29
| | | | - Making sure profile fields are saved properly.
* - Patch #7416 by Stefan: added sitewide timezone support.Dries Buytaert2004-04-27
|
* - Added support for 403 handling. Patch by JonBob. As a side benefit,Dries Buytaert2004-04-21
| | | | | | | | administrators will be able to define a custom 403 page, just as they can define 404 pages now. This needs to be documented in the "Changes since / migrating to ..." pages.
* - More profile module improvements:Dries Buytaert2004-03-21
| | | | | | | | | | | + Updated the _user() hook's "$type == 'view'" case to match the "$type == 'edit'" case. That is, both have to return an associtive array of the format array('category' => 'fields'). + Updated the profile pages to group fields by category. Made possible thanks to the above change. + Moved logic out of the theme_ functions.
* Patch #5588 by bylund: XHTML improvements: <i> -> <em> and <b> -> <strong>.Dries Buytaert2004-03-20
|
* - Rewrote the profile module:Dries Buytaert2004-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Added a 'created' field to the users table and renamed the 'timestamp' fied to 'changed' (cfr. node table). Update.php will try to determine a 'created' timestamp for existing users. + The profile module no longer uses serialized data but has its own set of tables. Known existing profile data is migrated by these new tables. TODO: migrate the birthday field. + The profile fields can be grouped, and within each group, profile fields can be sorted using weights. + The profile pages can be themed. + The profiles can be browsed based on certain properties/settings. + Change the _user hook: (i) 'private_view' and 'public_view' are merged into 'view' as there are no private fields and (ii) 'edit_form' has been renamed to 'edit'. + Avatar handling has been refactored and is now part of the user module. The users table has a dedicted 'picture' field. + Simplified the way themes should use display/visualize pictures or avatars. + Made it possible for administrators to replace or delete avatars. + ... I hope this make for a good base to build on collectively.