Database-Driven Group Information Sharing

My wife is a director at a non-profit organization that helps animals. They are implementing Drupal for their volunteer Web site. They have a simple home-grown application that they currently use to store information about animals. Volunteers enter the cat's or dog's (or rabbit's -- seriously) name, room number, kennel location, color, sex, ID#, behavior notes (in a text box), etc. They can also search previously entered information, see it displayed in a simple, sortable and editable list format.

Another filter selection for admin/user/user

In the same veign as the last version of this.
The one for admin/content/node actually interfered with this working (???)
This one solves whatever problem was cause, fixes a bug that was already there, and introduces disjunctive selection - in one way.
Because the module account_type relies on the radio button structure, this cannot work with that module enabled, until some change is made to that module.

Here is the code that would be altered in user.module

/**
* Implementation of hook_user_operations().
*/
function user_user_operations() {
global $form_values;

$operations = array(
'unblock' => array(
'label' => t('Unblock the selected users'),
'callback' => 'user_user_operations_unblock',
),
'block' => array(
'label' => t('Block the selected users'),
'callback' => 'user_user_operations_block',
),
'delete' => array(
'label' => t('Delete the selected users'),
),
);

if (user_access('administer access control')) {
$roles = user_roles(1);
unset($roles[DRUPAL_AUTHENTICATED_RID]); // Can't edit authenticated role.

$add_roles = array();
foreach ($roles as $key => $value) {
$add_roles['add_role-'. $key] = $value;
}

$remove_roles = array();
foreach ($roles as $key => $value) {
$remove_roles['remove_role-'. $key] = $value;

Drupal 6 release

Today is July, 1st, the day when the Drupal leaders promised to release the new version of their lovely CMS. So, where is it, guys?

expand_checkboxes might allow at least one level of checkbox grouping.

In an attempt to get a checkbox selection on a filter form, I needed to handle an array of arrays which turned out to be a grouping of selections.
The top level array is, of course, the array of the box groups. And, each array element is a list of checkboxes.
This turns out to be a group originally targeted at a selection list (). But, there is sometimes a need to turn a single selection into a multiple one.
In this case, changing form API code by transforming '#type' => "select" into '#type' => 'checkboxes'.

So, I thought maybe the checkboxes could be grouped into field lists. (This works for one application.) Of course, there is perhaps a better way. I have been using OAT during the last few weeks. And, they can make a tree, or nested UL lists, into expandable and collapsible checkbox trees. So, now I am wondering how to make that work with this form API.

In the mean time, the following solved one problem and integrates well with the form api. This change is made in form.inc:

function expand_checkboxes($element) {
$value = is_array($element['#value']) ? $element['#value'] : array();
$element['#tree'] = TRUE;
if (count($element['#options']) > 0) {
if (!isset($element['#default_value']) || $element['#default_value'] == 0) {
$element['#default_value'] = array();
}

Blocks and Menues on Errorpages

Hi, I`ve just created my 403, 404 and 500 Error pages. The errorpages are up and running. When I open them directly with their link (like: domain.com/404) everything works fine. But when a 404 error happens, I get redirected to me errorpage...but the menue and boxes are gone. What can I do to prevent this from happening?!
Anybody any Ideas?!

Thanks.

Moving auto time zone to core

The Auto Time Zone module is pretty slim and mature now. What about moving it into drupal 6 core?
http://drupal.org/project/autotimezone

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x