/** * Build the form. */ public function buildQuickForm() { $this->add('select', 'permission_role', ts('Permissioned Role(s)', array('domain', 'com.aghstrategies.eventpermissions')), $this->getRoles(), FALSE, array('class' => 'crm-select2', 'multiple' => TRUE)); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { CRM_Utils_System::setTitle(ts('Configure CDN Tax Receipts', array('domain' => 'org.civicrm.cdntaxreceipts'))); $this->processOrgOptions('build'); $this->processReceiptOptions('build'); $this->processSystemOptions('build'); $this->processEmailOptions('build'); $arr1 = $this->processOrgOptions('defaults'); $arr2 = $this->processReceiptOptions('defaults'); $arr3 = $this->processSystemOptions('defaults'); $arr4 = $this->processEmailOptions('defaults'); $defaults = array_merge($arr1, $arr2, $arr3, $arr4); $this->setDefaults($defaults); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit', array('domain' => 'org.civicrm.cdntaxreceipts')), 'isDefault' => TRUE))); // Set image defaults $images = array('receipt_logo', 'receipt_signature', 'receipt_watermark', 'receipt_pdftemplate'); foreach ($images as $image) { if (CRM_Utils_Array::value($image, $defaults)) { $this->assign($image, $defaults[$image]); if (!file_exists($defaults[$image])) { $this->assign($image . '_class', TRUE); } } } parent::buildQuickForm(); }
function buildQuickForm() { $profileCount = CRM_Utils_Array::value('profileCount', $_GET, FALSE); self::buildProfileWidget($this, $profileCount); $this->assign('profileCount', $profileCount); parent::buildQuickForm(); }
function buildQuickForm() { $this->add('text', 'title', ts('Title'), true, true)->setSize(45); // add form elements $this->add('select', 'widget', 'Widget', $this->getWidgets(), true); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Save'), 'isDefault' => TRUE), array('type' => 'next', 'name' => ts('Save & Preview')))); if (isset($this->_id)) { $query = "SELECT * FROM civicrm_wci_embed_code WHERE id= %1"; $params = array(1 => array($this->_id, 'Integer')); $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_EmbedCode'); while ($dao->fetch()) { $emb_code[$dao->id] = array(); CRM_Core_DAO::storeValues($dao, $emb_code[$dao->id]); $this->setDefaults(array('title' => $emb_code[$dao->id]['name'])); $this->setDefaults(array('widget' => $emb_code[$dao->id]['widget_id'])); } CRM_Utils_System::setTitle(ts('Edit embed code')); $this->assign('widget_id', $emb_code[$dao->id]['widget_id']); } else { CRM_Utils_System::setTitle(ts('New embed code')); } // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
/** * Function to buildQuickForm (extends parent function) * * @access public */ function buildQuickForm() { $this->setFormTitle(); $this->createFormElements(); $this->assign('postRuleBlock', $this->postRuleBlock); parent::buildQuickForm(); }
function buildQuickForm() { $this->add('select', 'group', 'Group', $this->getCiviMailchimpGroupOptions(), TRUE); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
/** * Function to build the form * * @return None * @access public */ public function buildQuickForm($check = FALSE) { parent::buildQuickForm(); $timeRange = CRM_Booking_Utils_DateTime::createTimeRange("00:00", "24:00"); $timeOptions = array(); foreach ($timeRange as $key => $time) { $option = date('G:i', $time); $timeOptions[$option] = $option; } $this->add('select', 'day_start_at', ts('Day starts at'), $timeOptions, FALSE, array()); $this->add('select', 'day_end_at', ts('Day ends at'), $timeOptions, FALSE, array()); /* $this->add('select', 'time_period', ts('Time period'), array(10 => '10', 15 => '15', 20 => '20', 30 => '30', 60 => '60'), FALSE, array() );*/ $this->add('text', 'cc_email_address', ts('CC'), array('size' => 50, 'maxlength' => 255), FALSE); $this->add('text', 'bcc_email_address', ts('BCC'), array('size' => 50, 'maxlength' => 255), FALSE); $this->add('checkbox', 'log_confirmation_email', ts('Log email?')); $this->add('checkbox', 'unlimited_resource_time_config', ts('')); $this->add('text', 'slot_new_colour', ts('New Slot Colour')); $this->add('text', 'slot_being_edited_colour', ts('Slot Editing Colour')); $this->add('text', 'slot_booked_colour', ts('Booked Slot Colour')); $this->add('text', 'slot_provisional_colour', ts('Provisional Slot Colour')); $this->addFormRule(array('CRM_Admin_Form_Preferences_Booking', 'formRule'), $this); $this->addButtons(array(array('type' => 'next', 'name' => ts('Save'), 'isDefault' => TRUE))); }
public function buildQuickForm() { $this->add('text', 'title', ts('Find'), CRM_Core_DAO::getAttribute('CRM_Batch_DAO_Batch', 'title')); $this->addButtons(array(array('type' => 'refresh', 'name' => ts('Search'), 'isDefault' => TRUE))); parent::buildQuickForm(); $this->assign('suppressForm', TRUE); }
function buildQuickForm() { // add form elements $this->add( 'date', // field type 'start_date', // field name 'Start Date', // field label true // is required ); $this->add( 'date', // field type 'end_date', // field name 'End Date', // field label true // is required ); $this->addButtons(array( array( 'type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE, ), )); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { // Contact $this->add('hidden', 'contact_id', ts('Contact id'), '', true); // get the list of all the groups $allGroups = CRM_Core_PseudoConstant::group(); // Arrange groups into hierarchical listing (child groups follow their parents and have indentation spacing in title) $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($allGroups, NULL, ' ', TRUE); // get the list of groups contact is currently in ("Added") or unsubscribed ("Removed"). $currentGroups = CRM_Contact_BAO_GroupContact::getGroupList($this->_contactId); // Remove current groups from drowdown options ($groupSelect) if (is_array($currentGroups)) { // Compare array keys, since the array values (group title) in $groupList may have extra spaces for indenting child groups $groupSelect = array_diff_key($groupHierarchy, $currentGroups); } else { $groupSelect = $groupHierarchy; } $groupSelect = array('' => ts('- select group -')) + $groupSelect; if (count($groupSelect) > 1) { $session = CRM_Core_Session::singleton(); $msg = ts('Add to a group'); $this->add('select', 'group_id', $msg, $groupSelect, false); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Opslaan / Volgende'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); } parent::buildQuickForm(); }
function buildQuickForm() { // add form elements // Add the API Email element $this->addElement('text', 'api_email_address', ts('API Email Address'), array('size' => 48, TRUE)); $this->addElement('text', 'api_password', ts('API Password'), array('size' => 48, TRUE)); $this->add('select', 'api_audience_type', ts('Audience Type'), array('' => '- select -') + $GLOBALS["DotMailerAudienceType"], FALSE); $this->add('select', 'api_opt_in_type', ts('Opt In Type'), array('' => '- select -') + $GLOBALS["DotMailerOptInType"], FALSE); $this->add('select', 'api_email_type', ts('Email Type'), array('' => '- select -') + $GLOBALS["DotMailerEmailType"], FALSE); $this->add('textarea', 'api_notes', ts('Notes'), array("rows" => 4, "cols" => 60)); /*$apiActivityTypes = &$this->addElement('advmultiselect', 'activity_types', ts('Activity Types') . ' ', CRM_Dotmailer_Utils::getActivityTypes(), array( 'size' => 5, 'style' => 'width:200px', 'class' => 'advmultiselect', ) );*/ $this->addButtons(array(array('type' => 'submit', 'name' => ts('Save'), 'isDefault' => TRUE))); if (!empty($GLOBALS["DotMailerCiviCRMDataFieldsMapping"]) && DOTMAILER_PROCESS_CUSTOM_DATA_FIELDS == 1) { $this->assign('dmCiviCRMFieldMapping', $GLOBALS["DotMailerCiviCRMDataFieldsMapping"]); } // Get activity type/campaign and DM mapping $dmMappings = CRM_Dotmailer_Utils::getDotmailerMappingDetails(); $this->assign('dmMappings', $dmMappings); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { $this->addElement('select', 'membership_record', ts('Select Membership'), array('' => ts('Loading...'))); $this->addElement('select', 'contribution_recur_record', ts('Select Recur Record'), array('' => ts('Loading...'))); //$this->addElement('text', 'contact_name', 'Contact', array('size' => 50, 'maxlength' => 255)); $this->addEntityRef('contact_name', ts('Contact'), array('create' => FALSE, 'api' => array('extra' => array('email')))); $this->addElement('hidden', 'cid', 'cid'); $this->addElement('text', 'reference_number', 'Smart Debit Reference', array('size' => 50, 'maxlength' => 255)); $this->addButtons(array(array('type' => 'upload', 'name' => ts('Next')))); // Get the smart Debit mandate details require_once 'CRM/SmartdebitReconciliation/Form/SmartdebitReconciliationList.php'; $smartDebitResponse = CRM_SmartdebitReconciliation_Form_SmartdebitReconciliationList::getSmartDebitPayments(CRM_Utils_Array::value('reference_number', $_GET)); $smartDebitMandate = $smartDebitResponse[0]; // Display the smart debit payments details $el = $this->addElement('text', 'first_name', 'First Name', array('size' => 50, 'maxlength' => 255)); $el->freeze(); $el = $this->addElement('text', 'last_name', 'Last Name', array('size' => 50, 'maxlength' => 255)); $el->freeze(); $el = $this->addElement('text', 'email_address', 'Email Address', array('size' => 50, 'maxlength' => 255)); $el->freeze(); $el = $this->addElement('text', 'regular_amount', 'Amount', array('size' => 50, 'maxlength' => 255)); $el->freeze(); $el = $this->addElement('text', 'start_date', 'Start Date', array('size' => 50, 'maxlength' => 255)); $el->freeze(); $this->assign('SDMandateArray', $smartDebitMandate); $this->assign('memStatusCurrent', self::c_current_membership_status); //MV, to set the current membership as default, when ajax loading $cid = CRM_Utils_Array::value('cid', $_GET); $this->assign('cid', $cid); $this->addFormRule(array('CRM_SmartdebitReconciliation_Form_MembershipRecurDetails', 'formRule'), $this); parent::buildQuickForm(); }
function buildQuickForm() { $contributionIds = implode(',', $this->contribution_ids); $this->add('text', 'contactId', ts('CiviCRM ID', array('domain' => 'de.systopia.donrec')), null, $required = true); $this->add('hidden', 'contributionIds', $contributionIds); $this->addDefaultButtons(ts('Rebook', array('domain' => 'de.systopia.donrec'))); parent::buildQuickForm(); }
function buildQuickForm() { // add form elements $this->addDate('dayview_select_date', ts('Select Booking Date'), TRUE, array('formatType' => 'activityDate')); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE), array('type' => 'reset', 'name' => ts('Reset')))); // export form elements parent::buildQuickForm(); }
function buildQuickForm() { $this->add('textarea', 'original_template', 'Paste Mailchimp HTML Here: ', array('rows' => 4, 'cols' => 50, 'style' => 'width: 100%; height: 300px;'), true); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Convert'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
public function buildQuickForm() { $this->add('text', 'title', ts('Find'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Batch', 'title')); $this->add('select', 'batch_status', ts('Status'), array('' => ts('- all -')) + CRM_Core_PseudoConstant::getBatchStatus()); $this->addButtons(array(array('type' => 'refresh', 'name' => ts('Search'), 'isDefault' => TRUE))); parent::buildQuickForm(); $this->assign('suppressForm', TRUE); }
function buildQuickForm() { $contact_id = 0; $bank_accounts = array(); if (isset($_REQUEST['cid'])) { $contact_id = (int) $_REQUEST['cid']; $bank_account = new CRM_Banking_BAO_BankAccount(); $bank_account->contact_id = $contact_id; $bank_account->find(); while ($bank_account->fetch()) { $bank_account_data = $bank_account->toArray(); $bank_account_data['references'] = $bank_account->getReferences(); $bank_account_data['data_parsed'] = json_decode($bank_account->data_parsed, true); $bank_accounts[$bank_account->id] = $bank_account_data; } } $this->assign('bank_accounts', $bank_accounts); $this->assign('bank_accounts_json', json_encode($bank_accounts)); $this->assign('contact_id', $contact_id); // load all account types $option_group = civicrm_api3('OptionGroup', 'getsingle', array('name' => 'civicrm_banking.reference_types')); $reference_types = civicrm_api3('OptionValue', 'get', array('option_group_id' => $option_group['id'], 'is_reserved' => 0)); $this->assign('reference_types_json', json_encode($reference_types['values'])); $reference_type_list = array(); $this->assign('reference_types', $reference_types['values']); foreach ($reference_types['values'] as $reference_type_id => $reference_type) { $reference_type_list[$reference_type_id] = "{$reference_type['label']} ({$reference_type['name']})"; } // load countries $country_id2iso = CRM_Core_PseudoConstant::countryIsoCode(); $country_iso2id = array_flip($country_id2iso); $country_id2name = CRM_Core_PseudoConstant::country(); $countries = array('' => ts("Unknown")); foreach ($country_iso2id as $iso => $id) { if (!empty($country_id2name[$id])) { $countries[$iso] = $country_id2name[$id]; } } // load settings $this->assign('reference_normalisation', (int) CRM_Core_BAO_Setting::getItem('CiviBanking', 'reference_normalisation')); $this->assign('reference_validation', (int) CRM_Core_BAO_Setting::getItem('CiviBanking', 'reference_validation')); // ACCOUNT REFRENCE ITEMS $this->add('hidden', 'contact_id', $contact_id, true); $this->add('hidden', 'reference_id'); $reference_type = $this->add('select', 'reference_type', ts("Bank Account Type"), $reference_type_list, true); // set last value $reference_type->setSelected(CRM_Core_BAO_Setting::getItem('CiviBanking', 'account.default_reference_id')); $reference_type = $this->add('text', 'reference', ts("Bank Account Number"), array('size' => 40), true); // BANK ITEMS $this->add('hidden', 'ba_id'); $this->addElement('text', 'bic', ts("BIC"), array('size' => 40), false); $this->addElement('text', 'bank_name', ts("Bank Name"), array('size' => 40), false); $country = $this->add('select', 'country', ts("Country"), $countries, false); // set last value $country->setSelected(CRM_Core_BAO_Setting::getItem('CiviBanking', 'account.default_country')); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Save'), 'isDefault' => TRUE), array('type' => 'cancel', 'name' => ts('Cancel'), 'isDefault' => FALSE))); parent::buildQuickForm(); }
/** * Build the form. */ public function buildQuickForm() { $this->addSelect('states', array('entity' => 'address', 'field' => 'state_province_id', 'multiple' => TRUE, 'label' => ts('Enabled states', array('domain' => 'com.aghstrategies.statelegemail')), 'country_id' => 1228, 'placeholder' => ts('- any -', array('domain' => 'com.aghstrategies.statelegemail')))); $this->add('text', 'key', ts('Sunlight Foundation API key', array('domain' => 'com.aghstrategies.statelegemail'))); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Save', array('domain' => 'com.aghstrategies.statelegemail')), 'isDefault' => TRUE))); // Send element names to the form. $this->assign('elementNames', array('states', 'key')); parent::buildQuickForm(); }
function buildQuickForm() { // add Menu Switch $menu_position_options = array(0 => ts("In Main Menu"), 1 => ts("In Contribution Menu"), 2 => ts("No Menu")); $menu_position = $this->add('select', 'menu_position', ts('CiviBanking Menu Position'), $menu_position_options, true); $menu_position->setSelected((int) $this->getCurrentValue('menu_position')); $this->addButtons(array(array('type' => 'submit', 'name' => ts("Save"), 'isDefault' => TRUE))); parent::buildQuickForm(); }
function buildQuickForm() { // add form elements $this->add('text', 'pcp_branch_contact', ts('Select ' . $this->_contactSubType), array('size' => '40'), TRUE); $this->addButtons(array(array('type' => 'next', 'name' => ts('Continue'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { // add form elements $this->add('select', 'favorite_color', 'Favorite Color', $this->getColorOptions(), true); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
/** * {@inheritdoc} */ public function buildQuickForm() { CRM_Utils_System::setTitle(ts('Gift Aid - Settings')); $this->add('checkbox', 'globally_enabled', 'Globally Enabled?'); $this->add('select', 'financial_types_enabled', 'Enabled Financial Types', $this->getFinancialTypes(), FALSE, array('multiple' => TRUE)); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Save'), 'isDefault' => TRUE), array('type' => 'cancel', 'name' => ts('Cancel')))); $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { CRM_Utils_System::setTitle(ts('Civisocial Facebook Credentials ')); $this->add('text', 'App_ID', ts('Facebook App ID')); $this->add('text', 'App_secret', ts('Facebook App Secret')); $this->add('text', 'App_Name', ts('Facebook App Name')); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
/** * Build the form object. * * @return void */ public function buildQuickForm() { // TODO:: Is this required? $this->applyFilter('__ALL__', 'trim'); // Text field to input the client ID $this->add('text', 'web_tracking_report_id', ts('Client ID')); $this->addFormRule(array('CRM_WebTracking_Form_Report', 'formRule')); $buttons = array(array('type' => 'upload', 'name' => ts('Save'), 'isDefault' => TRUE)); $this->addButtons($buttons); parent::buildQuickForm(); }
/** * Function to build the form * * @return None * @access public */ public function buildQuickForm() { // Get all activity types $activityTypes = CRM_Core_PseudoConstant::activityType(FALSE); $this->addElement('select', 'activity_type', ts('Activity Type'), array('3' => ts('Email')) + $activityTypes); // Create the Submit Button. $buttons = array(array('type' => 'submit', 'name' => ts('Save'))); // Add the Buttons. $this->addButtons($buttons); parent::buildQuickForm(); }
function buildQuickForm() { // add form elements $this->add('checkbox', 'receipt_recurring', ts('Enable email receipting for each recurring contribution.')); $result = CRM_Core_BAO_Setting::getItem('iATS Payments Extension', 'iats_settings'); $defaults = empty($result) ? array() : $result; $this->setDefaults($defaults); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { // add form elements $this->add('text', 'label', 'Label', '', true); $this->add('text', 'room_no', 'Room Number', '', false); $this->add('text', 'floor_no', 'Floor Number', '', false); $this->add('text', 'room_ext', 'Room Extension', '', false); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Add'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { $action = CRM_Utils_Array::value('action', $_REQUEST, ''); if (empty($action)) { $action = CRM_Utils_Array::value('action', $_POST, ''); } $id = CRM_Utils_Request::retrieve('id', 'Integer', $this); if (empty($id)) { $id = CRM_Utils_Array::value('id', $_POST, ''); } if ($action == 'update') { CRM_Utils_System::setTitle('Edit Dotmailer Mapping'); $dmMappingDetails = CRM_Dotmailer_Utils::getDotmailerMappingDetails($id); $defaults = $dmMappingDetails[$id]; $this->setDefaults($defaults); } elseif ($action == 'add') { CRM_Utils_System::setTitle('Add Dotmailer Mapping'); } elseif ($action == 'delete') { $this->assign('id', $id); $dmMappingDetails = CRM_Dotmailer_Utils::getDotmailerMappingDetails($id); $this->assign('activity_type_label', $dmMappingDetails[$id]['activity_type_label']); $this->assign('campaign_label', $dmMappingDetails[$id]['campaign_label']); CRM_Utils_System::setTitle('Delete Dotmailer mapping'); } elseif ($action == 'force_delete' & !empty($id)) { $sql = "DELETE FROM " . DOTMAILER_SETTINGS_TABLE_NAME . " WHERE id = {$id}"; CRM_Core_DAO::executeQuery($sql); $session = CRM_Core_Session::singleton(); $message = ts('Dotmailer mapping deleted'); CRM_Core_Session::setStatus($message, 'Dotmailer mapping', 'success'); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/dotmailer/settings', 'reset=1')); CRM_Utils_System::civiExit(); } // Activity types $activityTypes = CRM_Dotmailer_Utils::getActivityTypes(); $this->add('select', 'activity_type_id', ts('CiviCRM Activity Type'), array('' => '- select -') + $activityTypes, TRUE); // Active campaigns $allActiveCampaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, TRUE, FALSE); $this->add('select', 'campaign_id', ts('CiviCRM Campaign'), array('' => '- select -') + $allActiveCampaigns, FALSE); // Get list of Dotmailer Address Books $dmAddressBooks = civicrm_api('Dotmailer', 'getaddressbooks', array('version' => 3)); $this->add('select', 'dotmailer_address_book_id', ts('Dotmailer Address Book'), array('' => '- select -') + $dmAddressBooks['values'], TRUE); // Get list of Campaigns $dmCampaigns = civicrm_api('Dotmailer', 'getcampaigns', array('version' => 3)); $this->add('select', 'dotmailer_campaign_id', ts('Dotmailer Campaign'), array('' => '- select -') + $dmCampaigns['values'], FALSE); $this->addElement('hidden', 'action', $action); $this->addElement('hidden', 'id', $id); $this->addFormRule(array('CRM_Dotmailer_Form_DmMapping', 'formRule')); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Save'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
public function buildQuickForm() { // add form elements $this->add('text', 'Email', ts('Email'), '', TRUE); $this->add('text', 'Last', ts('Last Name'), '', TRUE); $this->add('text', 'First', ts('First Name'), '', TTRUE); $this->add('text', 'Middle', ts('Middle Name')); $this->add('select', 'IndividualPrefix', ts('Individual Prefix')); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }
function buildQuickForm() { // add form elements $this->add('text', 'metrics_reporting_url', ts('Metrics Reporting URL'), array("size" => 75), true); $this->add('text', 'metrics_site_name', ts('Metrics Site Name'), array("size" => 35), true); $this->add('text', 'metrics_ca_path', ts('SSL CA Path'), array("size" => 75), false); $this->add('checkbox', 'metrics_ignore_verify_peer', ts('Skip Peer CA Validation'), null, false); $this->add('checkbox', 'metrics_ignore_verify_host', ts('Skip SSL Host Validation'), null, false); $this->addButtons(array(array('type' => 'submit', 'name' => ts('Submit'), 'isDefault' => TRUE))); // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); parent::buildQuickForm(); }