You are here

function xbbcode_rebuild_tags in Extensible BBCode 7

Same name and namespace in other branches
  1. 8 xbbcode.module \xbbcode_rebuild_tags()

Reset all cached tags.

4 calls to xbbcode_rebuild_tags()
xbbcode_custom_tags_delete_submit in ./xbbcode.admin.inc
Delete a custom tag.
xbbcode_custom_tags_save_submit in ./xbbcode.admin.inc
Save (create or update) a custom tag.
xbbcode_rebuild_handlers in ./xbbcode.module
xbbcode_settings_handlers_save_submit in ./xbbcode.admin.inc
Save the handler settings.

File

./xbbcode.module, line 329
The main module file containing hook implementations.

Code

function xbbcode_rebuild_tags($format_id = XBBCODE_GLOBAL) {
  if ($format_id != XBBCODE_GLOBAL) {
    cache_clear_all("xbbcode_tags:{$format_id}", 'cache');
  }
  else {
    cache_clear_all('xbbcode_tags', 'cache', TRUE);
  }
}