2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
returnt('Allowed HTML tags: @tags',array('@tags'=>$allowed_html));
}
}
}
break;
case1:
switch($long){
case0:
returnt('Lines and paragraphs break automatically.');
case1:
function_filter_autop_tips($format,$long=FALSE){
if($long){
returnt('Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple blank lines.');
}
break;
else{
returnt('Lines and paragraphs break automatically.');
}
}
case2:
function_filter_url_tips(){
returnt('Web page addresses and e-mail addresses turn into links automatically.');
break;
}
case4:
function_filter_html_escape_tips(){
returnt('No HTML tags allowed.');
break;
}
}
/**
* @} End of "Tips callback for filters".
*/
/**
* Retrieve a list of text formats.
*/
...
...
@@ -571,7 +572,9 @@ function _filter_tips($format, $long = FALSE) {
$output.='<p>'.t('Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.').'</p>';
$output.='<p>'.t('If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.').'</p>';
$output.='<p>'.t('<a href="@drupal">Drupal.org</a> offers <a href="@php-snippets">some example PHP snippets</a>, or you can create your own with some PHP experience and knowledge of the Drupal system.',array('@drupal'=>url('http://drupal.org'),'@php-snippets'=>url('http://drupal.org/handbook/customization/php-snippets'))).'</p>';
return$output;
}
else{
returnt('You may post PHP code. You should include <?php ?> tags.');
}
}
...
...
@@ -133,7 +131,8 @@ function php_filter_info() {
'name'=>t('PHP evaluator'),
'description'=>t('Executes a piece of PHP code. The usage of this filter should be restricted to administrators only!'),