[Skip Header and Navigation] [Jump to Main Content]
Home
רימלנד

Languages

  • English
  • עברית

User login

  • Create new account
  • Request new password
Home

drupal

Drupal 6 language selection algorithm in "Path prefix with language fallback" mode

Submitted by boaz on Sat, 03/28/2009 - 14:03
  • technical
  • drupal
  • i18n
  • languages
  • localization

Are you in a need to alter Drupal 6 language selection algorithm?Do you just need to know what's going on under the hood?
Well, you've landed on the right article. I've recently needed to do the first task, and of course you can't change something unless you know how it works in the first place.

Its actually pretty simple. Here's how Drupal 6 determines the language:

  • boaz's blog
  • Add new comment
  • Read more

Making PHP session expire (in Drupal and in general)

Submitted by boaz on Tue, 01/06/2009 - 22:46
  • technical
  • drupal
  • sessions

As the Internet evolves, so do the black hats that abuse the net and its inhabitants to their needs. A very common requirement therefore these days is to limit the session lifetime in a PHP application. PHP provides several directives in php.ini to achieve the desired configuration.
This post will focus on how to have session expiration in Drupal (at least it mention most ways to do it, I think) but any PHP programmer unfamiliar with this issue could be enlightened by it (I think).

  • boaz's blog
  • Add new comment
  • Read more

Drupal FAPI tales - need a token?

Submitted by boaz on Tue, 12/30/2008 - 22:10
  • technical
  • csrf
  • drupal
  • fapi
  • form api
  • token

Long time no post. No time to post. Cest la vide, eh? Lets get to the point shall we?...

Abstract:
I'm implementing a site now with nice amount of self-crafted forms. Drupal of course. Drupal 6 of course.
Now, I had this problem with one of the forms when testing how it works (with the others I didn't reach that state yet):

  • boaz's blog
  • Add new comment
  • Read more

Teaching VI to recognize Drupal's *.module as php files

Submitted by boaz on Sat, 07/19/2008 - 10:41
  • technical
  • drupal
  • filetype
  • vi
  • vim

The issue at hand is how do I tell VI/VIM that Drupal PHP files named "myModule.module" are php files and not simple text files

  • boaz's blog
  • Add new comment
  • Read more

Using PDT + xDebug (for debugging Drupal projects)

Submitted by boaz on Wed, 03/05/2008 - 22:41
  • howto
  • technical
  • debugging
  • drupal
  • eclipse
  • pdt
  • php
  • xdebug

This blog post is meant to be a short guide and tips repository for setting up a PHP development environment using Eclipse PDT and xDebug. I use such an environment for my Drupal based development and it is an invaluable tool to me.

  • boaz's blog
  • 5 comments
  • Read more

Direct DB access with custom (CCK) node types in Drupal

Submitted by boaz on Thu, 02/07/2008 - 09:13
  • technical
  • cck
  • drupal
  • MySQL
  • php

Hi,

I had this experience a few days ago which I could definitely spare: my code that runs custom query against a Drupal site's DB failed completely. One day, out of the blue, my code topped working and I got those SQL problems errors. It appeared as if the DB has changed under my feet! C$%p! - DB corruption???
Not really... Had I known a bit more... Embarassed .

Here's the deal:
You work with Drupal, you have your own node types, created with CCK module of course.

  • boaz's blog
  • Add new comment
  • Read more
[Jump to Top] [Jump to Main Content]