mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-22 01:17:42 +02:00
parent
4c79b3d179
commit
7fab739efd
@ -272,17 +272,17 @@ abstract class Form extends Zend_Form
|
|||||||
/**
|
/**
|
||||||
* Add message to form
|
* Add message to form
|
||||||
*
|
*
|
||||||
* @param string $message The message to be displayed
|
* @param string $message The message to be displayed
|
||||||
* @param int $headingType Whether it should be displayed as heading (1-6) or not (null)
|
* @param int $headingType Whether it should be displayed as heading (1-6) or not (null)
|
||||||
*/
|
*/
|
||||||
public function addNote($message, $headingType = null)
|
public function addNote($message, $headingType = null)
|
||||||
{
|
{
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
new Note(
|
new Note(
|
||||||
array(
|
array(
|
||||||
'escape' => $headingType === null ? false : true,
|
'escape' => $headingType === null ? false : true,
|
||||||
'name' => sprintf('note_%s', $this->last_note_id++),
|
'name' => sprintf('note_%s', $this->last_note_id++),
|
||||||
'value' => $headingType === null ? $message : sprintf(
|
'value' => $headingType === null ? $message : sprintf(
|
||||||
'<h%1$s>%2$s</h%1$s>',
|
'<h%1$s>%2$s</h%1$s>',
|
||||||
$headingType,
|
$headingType,
|
||||||
$message
|
$message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user