Hooks reference: outputhtml_clean_title_html

This hook allows you to modify content's HTML output for <title>, before caching in OutputCaching.
Note: Only HTML will be sent to this hook, even if content includes PHP code.
Tip: This hook is run before caching; once content is in cache, the hook is not run anymore. Use it for time-consuming operations.

Args details

  • $sHtmlOnly (String) : Content's HTML output for <title>.
    Warning: This arg must be returned by the hook

Example

  1. function vhook_outputhtml_clean_title_html($sHtmlOnly)
  2. {
  3. //your code here...
  4. return $sHtmlOnly;
  5. }
  • en
Last edited on 04/05/2009 14:26:59
Powered by Anwiki • 0.04 sec • 2.03 MB