Skip to content

Commit

Permalink
modules/command: Add command description to `DisableNotificationsComm…
Browse files Browse the repository at this point in the history
…andForm'

refs #6593
  • Loading branch information
lippserd committed Sep 4, 2014
1 parent ed645b1 commit 6f8fc3e
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -32,6 +32,16 @@ public function init()
*/
public function createElements(array $formData = array())
{
$this->addElement(
'note',
'command-info',
array(
'value' => mt(
'monitoring',
'This command is used to disable host and service notifications for a specific time.'
)
)
);
$expire = new DateTime();
$expire->add(new DateInterval('PT1H'));
$this->addElement(
Expand Down Expand Up @@ -69,7 +79,7 @@ public function onSuccess(Request $request)
->disable()
->setExpire($this->getElement('expire')->getValue());
$this->getTransport($request)->send($toggleNotifications);
Notification::success(mt('monitoring', 'Command sent'));
Notification::success(mt('monitoring', 'Disabling host and service notifications..'));
return true;
}

Expand Down

0 comments on commit 6f8fc3e

Please sign in to comment.