Utility
The Utility module is a grouping of commonly-needed utilities that are simple to code, everyone wants, but nobody actually codes them.
Right now, we have the following features:
- Collapse the module page's fieldsets.
- This utility automatically collapses fieldsets on the admin/build/modules page. This speeds up the enabling or disabling of modules, since only the set of modules you're interested in can be expanded for editing. Why wade through all your modules every single time you go to this page? Collapse them!
There is also a counter for each fieldset that numbers every module in that group and reports on how many are enabled. Example: Core - optional [9] of [23]
- Module Weight
- This utility allows you to change module weights without having to make the change directly in the database. Very helpful for development or modules that require to be run in specific order.
- Permissions Fieldset Manager
- Similar to the System Modules above, except this encloses the permissions (admin/user/permissions) for each module in a fieldset. Those may either be all collapsed/expanded, or individually.
- Type Defaults
- This is a feature that sets all publishing and comment options for all content types. It also has the ability to exclude certain types.
- Log_Clear
- Looking at your logs and wishing you could get rid of just "this kind of message?" Too lazy to fire up PHPMyAdmin to do it (isn't that what Util is for). In searching DO, it seems there are lots of others who would like this.
So here is a function that adds a "Clear" button in the "Filter log" field set on the "Recent log" page. Note: This does not show up on the Util page at all.
- Logged_in_as
- Ever code up a little block to show user id and maybe roles? Well, here it is. Note: This does not show up on the Util page at all.
Please add feature requests for anything you want.
Version Status
With the increasing adoption of Drupal 6 and the maturing of D7, we feel the time has come to place our 5.x-1.x version into “maintenance only” mode. From now until we release a 7.x version there will be no new development on the 5.x-1.x version; we will, however, provide a best effort
to fix bugs.
Issues
As with all contributed modules, when considering submitting an issue review the existing issues list. (Don't forget to select "<all>" for the "Status" field.)
- Drupal version.
- Browser type and version.
- Database type and version.
- Error messages, if any.
- Module settings.
PHP prior 5.2 and MySql 4
Due to end-of-life on PHP4 and MySql4, we no longer actively support either of those products. If a problem arises, we will make an effort to work around it, but will not make a guarantee. Drupal 7 will require PHP 5.2 or higher and MySql 5 (or Postgres 8); if your host is not at these levels yet, please encourage them to get there ASAP.
Update.php
As with all modules, please make sure you run update.php after updating this module, even if no updates are identified.
Development version status
The development versions (-dev) are where the newest stuff is, including any bug fixes and new features. We try to make sure it is tested before we commit anything, but occasionally a bug will get by us. Your help on testing this code is greatly appreciated.
Current Features being tested in Development
Update.php required: Yes
- Change the submit button to "Save" #287986: Change the submit button to 'Save'
- Add option to hide module counts #348683: Add option to hide module counts
- "Add a message when settings are saved" #287990: Add a message when settings are saved
- Add Log_Clear function. #570964: Log clear function
- Add content types defaults module. #531726: Set publishing options
- Clean up base module form and menu. #274777: How to configure?
- Ability to collapse perms by module and all. #386088: Add option to control default collapsed state of permissions fieldsets
- Adds "Collapse all by default"; theme loop performance; module list much more compact. #571774: Improvements to system_modules module
- "Logged in as" block. #580878: Logged in as block
- Create a "contribs" directory.
- Correct form handling for weights. #532746: Module_weights does not work
- Add package contents directory. #456440: Add options in Modules List
- Add weight list and missing file list. #591754: Show missing files and modules that are weighted.
- Close named anchor. #597632: tidyup fieldset patch
- Create APFM links without hook_help. #599270: Fix to add link on modules page to apfm page
- Add dblog filter extensions. #578488: recent/aged/username/hostname filters for log entries
- Omit missing module files, updated description. #601880: Auto removal of missing module files?
- Omit missing module files, updated description. #664562: Module weights still displayed for deleted / uninstalled modules
- Schema and drupal_write_record fix. #604240: PostgreSQL (drupal_write_record) fix
- Don't show weights on missing prereq message. #600980: modules list confirmation page is broken
- Document PHP time. #623750: document why PHP time over MySQL NOW
- Fix anonymous username. #623766: fix empty username for Anonymous user
- Filter by uid instead of name. #642164: filter by u.uid instead of u.name
