revise phpdoc annotations for hook_sanitize()
This commit is contained in:
parent
f5c881586b
commit
6bd6a14c20
|
@ -232,7 +232,7 @@ abstract class Plugin {
|
||||||
* @param array<string> $allowed_elements
|
* @param array<string> $allowed_elements
|
||||||
* @param array<string> $disallowed_attributes
|
* @param array<string> $disallowed_attributes
|
||||||
* @param int $article_id
|
* @param int $article_id
|
||||||
* @return DOMDocument
|
* @return DOMDocument|array<int,DOMDocument|array<string>>
|
||||||
*/
|
*/
|
||||||
function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes, $article_id) {
|
function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes, $article_id) {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
|
@ -519,7 +519,7 @@ abstract class Plugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $url
|
* @param string $url
|
||||||
* @return string
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
function hook_get_full_text($url) {
|
function hook_get_full_text($url) {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
|
|
|
@ -32,6 +32,8 @@ class Af_Youtube_Embed extends Plugin {
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function api_version() {
|
function api_version() {
|
||||||
|
|
Loading…
Reference in New Issue