Example #1
0
 /**
  * Unregister the filters for the tpl file.
  *
  * @param string $handle
  */
 function unload_external_filters($handle)
 {
     if (isset($this->external_filters[$handle])) {
         foreach ($this->external_filters[$handle] as $filters) {
             foreach ($filters as $filter) {
                 list($type, $callback) = $filter;
                 $this->smarty->unregisterFilter($type, $callback);
             }
         }
     }
 }