User login

Public

Converting Webforms to Display Checkboxes and Radios in Multiple Columns

<?php
/**
 * Implement hook_form_alter().
 *
 * Integrates Multi-column checkboxes radios module with Webform module. Code
 * taken from module by haplo326 http://drupal.org/user/639916 posted to this
 * thread:  http://drupal.org/node/603900#comment-2228686
function agaricgenarts_form_alter(&$form) {

Use array_map() to apply a function to every element of an array

Say you have an array that's just a little messy and you need to apply a function to every value in that array... you probably want http://us2.php.net/array_map and not http://us.php.net/array_walk

To do this:

Be sure to re-add files to stage to commit in Git if you modify them after adding but before committing

Learned something new about git!

If you git add filename and then make some changes to that file before running git commit -m "Helpful commit message." those changes that you saved and tested are not part of that commit. You have to run git add again-- git add adds the exact version of the file at that time, not simply adding the file as a concept to staging.

How to clone a project from Github to work on it

http://github.com/guides/getting-a-copy-of-your-github-repo

This works for other people's repositories also, where you have been given access and when you have your public key.

For instance:

git clone git@github.com:scor/rdfx.git

Have Thunderbird permanently ignore mis-matched certificate error

I have a lot of e-mail accounts. Some of them check with a different domain name than to which is registered with a security certificate for the same IP address. To check mail, you have to click OK before it times out. Every. Time.

There's a bug report that may never be resolved:
https://bugzilla.mozilla.org/show_bug.cgi?id=221552

Passing an argument to a Drupal form through hook_menu and use of drupal_get_form

It works. Count how many parts to the menu path there are (text between slashes) and put that number in as a page argument in the array provided for this. (This actually means to grab the /next/ piece of the menu path to use , because the system's counting starts at zero.

Passing Arguments to Form Functions through hook_menu()
http://drupal.org/node/457782

Syndicate content