how to Call registration form via ajax with the existing page content in drupal 7

Can any one suggest me that how can i call the customized registration form using Ajax, with the existing page content. I had tried to write user menu hook but it is not working. do i need to specify some more setting in menu creation for the Ajax call? Basically my task is. to show the registration form on the home page. when i click on the register link the content on the home page should slide down and my registration form should appear there.
Please suggest me how i can achieve this.

Thanks In advance

Remove owner information from Search results

How do you remove owner information such as user id, date and time for each result?

I did some research and was told to modify search tpl files but I don't think it's the logical way as an update of Drupal will overwrite the modified files.

At the moment my search results show:
admin - 08/08/2011 - 20:15

after each search result item.

Thanks in advance,
Sikocan

hook_menu and form_state questions

Hi All

I am developing a module and I have a question regarding hook_menu and form_state['redirect']

I have the following function

function people_search_block_form_submit($form, &$form_state) {
  $form_state['redirect'] = 'people_search/'. implode(' ', $form_state['values']['keys']);
}

This redirects to a url that looks like http:site/people_search/term xyz xyz xyz

I have a menu callback that looks like this

function people_search_menu() {
 

	  $items['people_search/%'] = array(
	    'title'            => t('Find a Person'),
	    'page callback'    => 'people_search_output',
	    'page arguments'   => array(1),
	    'access arguments' => array('access content'),
	  );
 
	  return $items;
}

As I understand the callback array(1) contains the value created by implode(' ', $form_state['values']['keys'])

The form_state values and keys come from a form and consist of a search term and the values from 3 select lists. I understand how the URL is getting the people_search/term xyz xyz xyz

From a usability point of view the URL with the xyz xyz xyz on the end of it looks terrible even though it has no effect on the operation of the script. The values are needed to be passed on to my code later on.

Timezone Dropdown List in User Account

Does anyone know how to change the timezone dropdown list in the user account/registration?
So which file is the menu/settings located in? (Assuming I am using Garland theme if that matters, and the variables will still be stored as a string, ie America/Chicago). Alternatively, how to change the user registration/account settings page so I can key in my own dropdown form?

Thanks!

Getting node record by node reference key

Hi,
How to get a node type record filtering by its node reference field? for types other then node reference i am using the following and it works good but not working for a node reference field

$field = field_info_field('field_ei_frame_color');
$query = new EntityFieldQuery();

$query
->entityCondition('entity_type', 'node', '=')
->entityCondition('bundle', 'ei_theme', '=')
->fieldCondition($field, 'value', 'FFFFFF');

$result = $query->execute();

Thanks

Creating a link with l(); function issue

I'm using the Views and the Views PHP modules to build my own display for a twitter feed, but i'm having an issue with the l(); function or maybe I don't understand exactly how it works. I'm entering my code similar to this

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x