March, 2009

Commit 189574 by robertDouglass

Commit #189574 by robertDouglass at 22:01
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.10
Cleaning up permissions a bit and making code comments where there are things to be done.

Danjulo Ishizaka

CONTACT SITEMAP. Conductors. Singers. Instrumentalists ... Danjulo Ishizaka "With this level of superiority, the unpretentious young player has joined the ...

Commit 188964 by robertDouglass

Commit #188964 by robertDouglass at 18:54
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.9
Yay. Working round trip of writing help, injecting it, exporting it, moving the exported module into sites/all/modules, and then seeing the help appear in the right place.

Commit 188578 by robertDouglass

Commit #188578 by robertDouglass at 21:48
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.8
Great progress. The module exports more or less correctly, as does the help texts. I need to find a different way to do the popup help stuff pre-export, though, because I no longer rely on help text files, but rather now map from helpinject icon to book node.

Commit 186892 by robertDouglass

Commit #186892 by robertDouglass at 15:38
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.7
Remove some dsm and add notes to the module specifying what has to be done next - ie bus proof the code

Commit 186888 by robertDouglass

Commit #186888 by robertDouglass at 15:02
Advanced Help Injection and Export: /modules/helpinject/helpinject.install 1.2Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.6
Injector CRUD working again.

Commit 186884 by robertDouglass

Commit #186884 by robertDouglass at 14:40
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.5
You may now submit the form. Don't expect it to save your data though.

Commit 186872 by robertDouglass

Commit #186872 by robertDouglass at 14:15
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.4
Now the table stares at you with a menacing row of radio buttons, daring you to submit the form. It wins the dare, though, becuse there is no submit button and no submit handler.

Commit 186860 by robertDouglass

Commit #186860 by robertDouglass at 13:15
Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.3
Now have table for choosing book for injection working - if by working you understand I mean that it doesn't do anything, just sits there looking at you in all of its hierarchical glory.

Thank you!

I am looking forward to attending my first Eclipse Board meeting on Monday. This first time, I will be a guest since my term of office starts in April. Unfortunately, I can only attend the second half because I am co-presenting a tutorial in the morning. Sorry about that, it won't happen again. ;-)Thanks to all who voted!

RCP Mail 2.0

Come to our EclipseCon 2009 tutorial (Monday March 23, 8:00 - 12:00) if you would like to learn about best practices for data binding, commands/handlers/contributions, and the common navigator. Bring your laptop with a copy of Eclipse SDK 3.5 M6 for the hands-on excercises!Three RCP practitioners, and three Platform UI committers for a total of six people will help you understand and build RCP Mail 2.0. Should be fun!

Kimiko Ishizaka to play piano concert in Cologne

In case you’re going to be in Cologne on March 28 (2009), there will be a free concert by Kimiko Ishizaka:

Where: Klaviere Then, Köln, Germany
When: March 28, 2009, 17:00
Program: Schubert, Bach
Address: Klaviere Then, Wormser Str. 41-43, 50677 Köln, Tel. (0221) 38 43 21

The concert is going to be recorded by Center TV because they are doing a portrait of Kimiko for television broadcast. She’s also the German vice-champion in weightlifting and the combination of someone who does strength sports and plays classical piano is very interesting for television.

Commit 184222 by robertDouglass

Commit #184222 by robertDouglass at 20:31
Advanced Help Injection and Export: /modules/helpinject/helpinject.info 1.2Advanced Help Injection and Export: /modules/helpinject/helpinject.module 1.2
rm book2advhelp module - refactoring it into helpinject

Commit 184220 by robertDouglass

Commit #184220 by robertDouglass at 20:31
Advanced Help Injection and Export: /modules/helpinject/book2advhelp/book2advhelp.info NONE

Commit 184216 by robertDouglass

Commit #184216 by robertDouglass at 20:25
Advanced Help Injection and Export: /modules/helpinject/helpinject/helpinject.css NONEAdvanced Help Injection and Export: /modules/helpinject/helpinject/helpinject.info NONE

Commit 184108 by robertDouglass

Commit #184108 by robertDouglass at 15:38
Advanced Help Injection and Export: /modules/helpinject/helpinject.css 1.1Advanced Help Injection and Export: /modules/helpinject/helpinject.info 1.1

Commit 184102 by robertDouglass

Commit #184102 by robertDouglass at 15:28
Advanced Help Injection and Export: /modules/helpinject/book2advhelp/book2advhelp.info 1.1Advanced Help Injection and Export: /modules/helpinject/book2advhelp/book2advhelp.module 1.1

Commit 184098 by robertDouglass

Commit #184098 by robertDouglass at 15:27
Advanced Help Injection and Export: /modules/helpinject/book2advhelp/directory NONE
Directory /cvs/drupal-contrib/contributions/modules/helpinject/book2advhelp added to the repository

Commit 184096 by robertDouglass

Commit #184096 by robertDouglass at 15:27
Advanced Help Injection and Export: /modules/helpinject/helpinject/directory NONE
Directory /cvs/drupal-contrib/contributions/modules/helpinject/helpinject added to the repository

Commit 184094 by robertDouglass

Commit #184094 by robertDouglass at 15:26
Advanced Help Injection and Export: /modules/helpinject/directory NONE
Directory /cvs/drupal-contrib/contributions/modules/helpinject added to the repository

Altering forms without hook_form_alter

Sometimes you might want to alter a $form array in a systematic and declarative manner. For example, say you want to change all of the #title elements to "foo". Here's a function that Adrian Rossouw and I just wrote that does just that. It recurses through all of the children elements of the form sending them (by reference) to a callback function of your choice. That callback can then alter them in any way it wants.

<?php
/**
* Take a form element or whole form array, and a callback, and
* recurse through all children elements, passing them to
* the callback function for processing.
*/
function step_form(&$element, $callback) {
  foreach (
element_children($element) as $child) {
   
step_form($element[$child], $callback);
  }
 
$callback($element);
}

/**
* A callback function to change #title elements to the value "foo"
*/
function change_title(&$element) {
  if (isset(
$element['#title'])) {
   
$element['#title'] = 'foo';
  }
}

/**
* A fictional module's hook_form_alter implementation that sends the form
* to step_form() specifying change_title() as the callback function.
*/
function foo_form_alter(&$form, $form_state, $form_id) {
 
step_form($form, 'change_title');
}
?>