[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/throttle/ -> throttle.module (summary)

(no description)

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

Defines 4 functions

  throttle_menu()
  throttle_status()
  throttle_exit()
  throttle_help()

Functions
Functions that are not part of a class:

throttle_menu()   X-Ref


throttle_status()   X-Ref
Determine the current load on the site.

Call the throttle_status() function from your own modules, themes, blocks,
etc. as follows:

$throttle = module_invoke('throttle', 'status');

to determine the current throttle status. Use module_invoke() so the
call will still work if the throttle module is disabled. For example, in
your theme you might choose to disable pictures when your site is too busy
(reducing bandwidth), or in your modules you might choose to disable
some complicated logic when your site is too busy (reducing CPU utilization).

return:

throttle_exit()   X-Ref
Implementation of hook_exit().

Changes the current throttle level based on page hits.

throttle_help($path, $arg)   X-Ref
Implementation of hook_help().




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7