LangsAtOnce module
My first module is ready. And this post is for applying cvs account at drupal. I thought its name as Xeber which means Haber in azerian, latter I think to change it to more understandable name: LangsAtOnce.
This module intended to add extra fields while adding the content. Extra fields will contain translations of the original node. Unfortunately There is a kind of bug related the natural language, which means in drupal "in all languages, content should stay same". This prevents adding translations. I hacked translation module in my installations.
Project stays in http://drupal.org/project/LangsAtOnce
Similar
New technique to win olimpics
At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.
Printing mysql_error
This is a code snipped to print mysql error.
If there is no error mysql_error returns null, thus if evaluates false and there is no output.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
php unlink recursive
The shortest recursive delete possible.
<?php
/**
* Delete a file or recursively delete a directory
*
* @param string $str Path to file or directory
*/
