<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
/**
- * the group id
+ * The group id
*
* @var int
*/
protected $_title;
/**
- * set up variables to build the form
+ * Set up variables to build the form
*
* @return void
* @acess protected
*/
- function preProcess() {
+ public function preProcess() {
$this->_id = $this->get('id');
$defaults = array();
}
/**
- * Function to actually build the form
+ * Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
* Process the form when submitted
*
* @return void
- * @access public
*/
public function postProcess() {
$group = new CRM_Core_DAO_CustomGroup();
CRM_Core_Session::setStatus(ts("The Group '%1' has been deleted.", array(1 => $group->title)), '', 'success');
}
}
-