mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12479] Remove function bbcode_second_pass_by_extension
PHPBB-12479
This commit is contained in:
parent
f835fba49e
commit
78f96c3e5c
1 changed files with 0 additions and 34 deletions
|
@ -651,38 +651,4 @@ class bbcode
|
||||||
|
|
||||||
return $code;
|
return $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function to perform custom bbcode second pass by extensions
|
|
||||||
* can be used to assign bbcode pattern replacement
|
|
||||||
* Example: '#\[list=([^\[]+):$uid\]#e' => "\$this->bbcode_second_pass_by_extension('\$1')"
|
|
||||||
*
|
|
||||||
* Accepts variable number of parameters
|
|
||||||
*
|
|
||||||
* @return bool Second pass result
|
|
||||||
*
|
|
||||||
* @deprecated 3.2.10 (To be removed 4.0.0)
|
|
||||||
*/
|
|
||||||
function bbcode_second_pass_by_extension()
|
|
||||||
{
|
|
||||||
global $phpbb_dispatcher;
|
|
||||||
|
|
||||||
$return = false;
|
|
||||||
$params_array = func_get_args();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Event to perform bbcode second pass with
|
|
||||||
* the custom validating methods provided by extensions
|
|
||||||
*
|
|
||||||
* @event core.bbcode_second_pass_by_extension
|
|
||||||
* @var array params_array Array with the function parameters
|
|
||||||
* @var mixed return Second pass result to return
|
|
||||||
*
|
|
||||||
* @since 3.1.5-RC1
|
|
||||||
*/
|
|
||||||
$vars = array('params_array', 'return');
|
|
||||||
extract($phpbb_dispatcher->trigger_event('core.bbcode_second_pass_by_extension', compact($vars)));
|
|
||||||
|
|
||||||
return $return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue