File size: 1.29Kb
<?php
/**
* SocialEngine
*
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: Delete.php 9747 2012-07-26 02:08:08Z john $
* @author John
*/
/**
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
*/
class Core_Form_Admin_Managetags_Delete extends Engine_Form {
public function init() {
$this
->setTitle('Delete Tag')
->setDescription('Are you sure you want to delete this tag?');
$this->addElement('Button', 'submit', array(
'type' => 'submit',
'label' => 'Delete',
'decorators' => array('ViewHelper')
));
$this->addElement('Cancel', 'cancel', array(
'label' => 'cancel',
'link' => true,
'prependText' => Zend_Registry::get('Zend_Translate')->_(' or '),
'href' => '',
'onclick' => 'parent.Smoothbox.close();',
'decorators' => array(
'ViewHelper'
)
));
$this->addDisplayGroup(array('submit', 'cancel'), 'buttons');
$button_group = $this->getDisplayGroup('buttons');
$this->setAction(Zend_Controller_Front::getInstance()->getRouter()->assemble(array()));
}
}