How to upload file in drupal using custom code ?

    You have to create a custom module for it.

    How to hide node title field in drupal node/add form?

    Steps to do this:

    1. Download and install following module http://drupal.org/project/auto_nodetitle

    2. After installation go to admin/content/types and edit appropriate content type

    3. You can see a fieldset Automatic title generation select the radio button automatically generate title and hide title field

    4. That it Done !!

    How can we find nid from node internal path?

    We can find nid from node internal path by using following function $node = menu_get_object(); We can specify the path by using following syntax
    ($type = 'node', $position = 1, $path = '/student/2010/testing');

    How to create user in drupal programmatically?

    The code under can be used to create new user. We can also add profile fields values if we are using profile module there.

    How to save particular user profile field?

    You can do that using following code in drupal : In the below code I'm saving the position field in Work History Category the below function is custom form submit function you can create the form
    function {modulename}_change_submit($form, &$form_state) {
    $uid $form_state['values']['uid'];
    $siteuser = user_load(array('uid' => $uid));
    $profile_user = (array)$siteuser;
    $new_user_edit['profile_position'] = $form_state['values']['position'];
    profile_save_profile($profile_user, $siteuser, "Work History");

    How to hide error or status messages on specific pages in drupal?

    There are two ways:

    To do this you can create a page.tpl for the page by copying page.tpl.php and renaming it like page-
    .tpl.php and remove $messages variable from the page tpl file.


    Alternate and simple way is to add code in theme_preprocess_page(&$vars) in template.php

    if(arg(0) == 'thanks') {

    What are the drupal seo modules ?

    Check the list of drupal seo modules here


    Favicon not showing in IE ?

    There may be many reasons of favicon not showing in IE you don't have proper favicon.ico file or due to path problem.

    So generate your favicon icon from here
    You can upload image and generate and download icon from here In drupal you can upload from theme configuration Clear the IE cache and site cache If it still does'nt work download and install http://drupal.org/project/favicon

    Another method you can give absolute path for icon and put icon in your root directory

    How to close modalfame after form submission ?

    You need to use modalframe_close_dialog($args);

    where $args is the array containing list of arguments you need to pass to the script. Also if you want to reload the parent window you have to user window.location.reload(); in your submitcallback function

    How to create node from anywhere using call to node form?

    You can create node by using your own function to call the node form inside it anywhere on drupal pages. <?php /** * Replace these values in your code * => Content type type. * => Name of module. */ function __node_form() { global $user; module_load_include('inc', 'node', 'node.pages'); $node = array( 'uid' => $user->uid, 'name' => $user->name, 'type' => '', ); return drupal_get_form('_node_form', $node); } /** * Removing Extra fields if you want to remove those using form alter. * You can add ot