• Here I give just simple example to change themes via your site URL.
    It might be help full when you will create multi-language site.

    name = switch
    package = switch
    core = 6.x
    description = "Your Desc"
    version = "6.x-1.0"
    core = "6.x"
    project = "switch"

    function switch_init() {
        global $custom_theme;
        $language = $_GET['lang'];
        case "...

  •  Drupal experts love the command line. The only thing better than Unix commands are Drupal command line macros, a.k.a. Drush.
    Drush is a library of command line scripts that automate an array of Drupal administrative functions. Even if you are not a command line junkie, you might find helpful the elegance of administration via Drush.
    This tutorial is a two-fer. You will learn how to install Drupal 7 using SSH and get a taste of Drush by seeing it in action. The first step is to...

    Drupal, Drush
  • This is Nice Idea to enter one Additional Validation in node_validation hook
    I added hear _mymodule_custom_validation in node_validation function

    function mymodule_form_alter(&$form, &$form_state, $form_id) {
        switch($form_id) {
        case 'forum_node_form':  // My form_id "forum_node_form".
                $form['#validate'][] = '_mymodule_custom_validation';      
            /* Here I set custom validation to this form it will...