You are here

function xbbcode_rebuild_tags in Extensible BBCode 8

Same name and namespace in other branches
  1. 7 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 330
The main module file containing hook implementations.

Code

function xbbcode_rebuild_tags($format_id = XBBCODE_GLOBAL) {
  if ($format_id != XBBCODE_GLOBAL) {
    cache()
      ->delete("xbbcode_tags:{$format_id}");
  }
  else {
    cache()
      ->deletePrefix('xbbcode_tags');
  }
}