X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FSMS%2FForm%2FGroup.php;h=acb5d76be8e77bade84069b23bd1076d9a2d0937;hb=c5c263cabdd47a41f44c6a39a81e212d69616ea1;hp=e314d21cd46b2bfe630fd3b229477943a58dd5f3;hpb=7f768717e37801b57add73e3c501ef61cc60327e;p=civicrm-core.git diff --git a/CRM/SMS/Form/Group.php b/CRM/SMS/Form/Group.php index e314d21cd4..acb5d76be8 100644 --- a/CRM/SMS/Form/Group.php +++ b/CRM/SMS/Form/Group.php @@ -29,20 +29,15 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2015 - * $Id$ - * */ /** - * Choose include / exclude groups and mass sms - * + * Choose include / exclude groups and mass sms. */ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { /** * Set variables up before form is built. - * - * @return void */ public function preProcess() { if (!CRM_SMS_BAO_Provider::activeProviderCount()) { @@ -55,10 +50,7 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { /** * Set default values for the form. - * the default values are retrieved from the database - * - * - * @return void + * The default values are retrieved from the database. */ public function setDefaultValues() { $mailingID = CRM_Utils_Request::retrieve('mid', 'Integer', $this, FALSE, NULL); @@ -102,12 +94,10 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { /** * Build the form object. - * - * @return void */ public function buildQuickForm() { - //get the context + // Get the context. $context = $this->get('context'); $this->assign('context', $context); @@ -117,10 +107,10 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { TRUE ); - //get the mailing groups. + // Get the mailing groups. $groups = CRM_Core_PseudoConstant::nestedGroup('Mailing'); - //get the sms mailing list + // Get the sms mailing list. $mailings = CRM_Mailing_PseudoConstant::completed('sms'); if (!$mailings) { $mailings = array(); @@ -190,10 +180,10 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { $groups = array(); foreach (array( - 'name', - 'group_id', - 'is_sms', - ) as $n) { + 'name', + 'group_id', + 'is_sms', + ) as $n) { if (!empty($values[$n])) { $params[$n] = $values[$n]; } @@ -252,9 +242,9 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { // delete previous includes/excludes, if mailing already existed foreach (array( - 'groups', - 'mailings', - ) as $entity) { + 'groups', + 'mailings', + ) as $entity) { $mg = new CRM_Mailing_DAO_MailingGroup(); $mg->mailing_id = $ids['mailing_id']; $mg->entity_table = ($entity == 'groups') ? $groupTableName : $mailingTableName;