Blog

The standard way of altering form elements and setting them disabled does not work with cck fields.

<?php
function my_module_form_alter(&$form, &$form_state$form_id) {
  
$form['my_element']['#disabled'] = true
}
?>

The FAPI process handler of the CCK field won't transfer the #disabled attribute to its children elements.
You'll need this snippet to make it work.
<?php
/**?>

The jquery scrollto is now available to drupal by using this project:

http://drupal.org/project/jquery_scrollto

For more on the jquery scroll to plugin http://plugins.jquery.com/project/ScrollTo

This first project is used to make your interface localized easier. The second project is an API to look for translatable strings and translatability errors.
http://drupal.org/project/l10n_client
http://drupal.org/project/potx

The jquery multiselect widget is now available to drupal by using these two projects:

http://drupal.org/project/jquery_multiselect
http://drupal.org/project/fancy_multiselect

For more on the jquery ui multiselect http://quasipartikel.at/multiselect/

The main function in drupal to format a date is the format_date function which will take the formatting and timezone conversion you configured at http://yoursite/admin/settings/date-time and http://yoursite/admin/settings/date-time/formats

<?php
//format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL)
//An example convert the unix timestamp for now 
?>

For example we want to add an api key as a variable to our jquery script. In drupal we define our apikey using a settings form. We add the js using drupal_add_js. Notice that the second parameter says 'setting', this is used to tell the drupal javascript system to add the array as a setting in scripts.

As we all know drupal has a default front page which shows a view of teaser nodes promoted to front.
Most sites will replace this page with something else.
But we might forget that we can still go to this page. You might want to remove it.
A simple trick to do this is to make it go to the page not found.

In terminal:

First install libevent:

cd /usr/local/src/
wget <a href="http://monkey.org/~provos/libevent-1.3e.tar.gz
tar" title="http://monkey.org/~provos/libevent-1.3e.tar.gz
tar">http://monkey.org/~provos/libevent-1.3e.tar.gz
tar</a> zxpfv libevent*
cd libevent*
./configure
make install

Download and install memcached:

cd /usr/local/src/
wget <a href="http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar" title="http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar">http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar</a> zxpfv memcached*
cd memcached*
./configure
make install

Legrandbateau is a brand new french/flemish band playing Jazz, Bossa, Tangopop, Rumbarock.
You should definitly check them out!

http://legrandbateau.com/

To listen to their songs http://legrandbateau.com/media

Manage Taxonomy Trees

When working with taxonomy, especialy large vocabularies with deep hierarchies the standard taxonomy module isnt enough to manage your vocabularies. To maintain the vocabulary in drupals backend the most obvious choice is http://drupal.org/project/taxonomy_manager

Some features:

Syndicate content