[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/date/date_timezone/ -> date_timezone.module (summary)

(no description)

File Size: 302 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 14 functions

  date_timezone_init()
  date_timezone_menu()
  date_timezone_form_alter()
  date_timezone_site_form()
  date_timezone_site_form_after_build()
  date_timezone_user_form()
  date_timezone_user_form_after_build()
  date_timezone_update_site()
  date_timezone_update_user()
  date_timezone_cron()
  date_timezone_user()
  user_timezone()
  date_timezone_replacement()
  date_event_zonelist_by_name()

Functions
Functions that are not part of a class:

date_timezone_init()   X-Ref
Make sure a timezone has been selected.


date_timezone_menu()   X-Ref
Implementation of hook_menu().


date_timezone_form_alter(&$form, &$form_state, $form_id)   X-Ref
Implementation of hook_form_alter().

Override system handling of user and site timezone selection.

date_timezone_site_form(&$form)   X-Ref
Create a form for the site timezone names.
Display a list of timezone names instead of offsets.


date_timezone_site_form_after_build(&$form)   X-Ref
Hide the original form.

We have to do this in after_build in case the Event module
is enabled since the Event module will do its form_alter()
after the Date module.

date_timezone_user_form(&$form)   X-Ref
Create a form for the site timezone names.
Display a list of timezone names instead of offsets.


date_timezone_user_form_after_build($form)   X-Ref
Hide the original form.

We have to do this in after_build in case the Event module
is enabled since the Event module will do its form_alter()
after the Date module.

date_timezone_update_site($element, &$form_state)   X-Ref
Callback from site timezone settings form to update site timezone info.
When the timezone name is updated, update the offset as well.


date_timezone_update_user($element, &$form_state)   X-Ref
Callback from user timezone settings form to update user timezone info.
When the timezone name is updated, update the offset as well.


date_timezone_cron()   X-Ref
Update the site timezone offset when cron runs.

This is to make sure that modules that rely on the timezone offset
have current information to process.

date_timezone_user($op, &$edit, &$account, $category = NULL)   X-Ref
Update user timezone information at login.

This is to make sure that modules that rely on the timezone offset
have current information to process.

user_timezone($abbreviation = '', $offset = -1, $is_daylight_saving_time = NULL)   X-Ref
Menu callback; Retrieve a JSON object containing a suggested time
zone name.


date_timezone_replacement($old)   X-Ref
Create replacement values for deprecated timezone names.


date_event_zonelist_by_name($name)   X-Ref
Helper function to update Event module timezone information.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7