'civicrm_contact' => ts('Contact'),
'civicrm_group' => ts('Group'),
'civicrm_saved_search' => ts('Contact Group'),
- 'civicrm_admin' => ts('Administer'),
'civicrm_admin' => ts('Import'),
);
}
$block[$id] = array(
'info' => $value['info'],
'cache' => $value['cache'],
- 'status' => $value['active'],
'region' => $value['region'],
'visibility' => $value['visibility'],
'pages' => $value['pages'],
'title' => ts($options['prefix_label'] . 'Street Number'),
'type' => 1,
'default' => CRM_Utils_Array::value('street_number', $options['defaults'], FALSE),
- 'name' => 'street_number',
),
$options['prefix'] . 'street_name' => array(
'name' => 'street_name',
'title' => ts($options['prefix_label'] . 'Street Name'),
'type' => 1,
'default' => CRM_Utils_Array::value('street_name', $options['defaults'], FALSE),
- 'name' => 'street_name',
),
$options['prefix'] . 'street_unit' => array(
'name' => 'street_unit',
'title' => ts($options['prefix_label'] . 'Street Unit'),
'type' => 1,
'default' => CRM_Utils_Array::value('street_unit', $options['defaults'], FALSE),
- 'name' => 'street_unit',
),
$options['prefix'] . 'city' => array(
'title' => ts($options['prefix_label'] . 'City'),
'last_name' => array(
'title' => ts('Last Name'),
),
- 'id' => array(
- 'no_display' => TRUE,
- 'required' => TRUE,
- ),
'contact_type' => array(
'title' => ts('Contact Type'),
),
'title' => ts('Last Name'),
'no_repeat' => TRUE,
),
- 'id' => array(
- 'no_display' => TRUE,
- 'required' => TRUE,
- ),
'contact_type' => array(
'title' => ts('Contact Type'),
),
'contact.birth_date' => CRM_Utils_Array::value('birth_date', $fields),
'contact.gender' => CRM_Utils_Array::value('gender', $fields),
'contact.is_opt_out' => CRM_Utils_Array::value('is_opt_out', $fields),
- 'contact.home_URL' => CRM_Utils_Array::value('home_URL', $fields),
'contact.preferred_mail_format' => CRM_Utils_Array::value('preferred_mail_format', $fields),
'contact.phone' => CRM_Utils_Array::value('phone', $fields),
'contact.home_URL' => CRM_Utils_Array::value('home_URL', $fields),
//@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 64,
'maxlength' => 256,
//@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 64,
'maxlength' => 64,
//@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
- 'html_attributes' => array(
- 'size' => 64,
- 'maxlength' => 64,
- ),
- 'html_type' => 'Text',
- 'default' => NULL,
- 'add' => '4.3',
- 'title' => 'Recaptcha Private Key',
- 'is_domain' => 1,
- 'is_contact' => 0,
- 'description' => NULL,
- 'help_text' => NULL,
- ),
- 'recaptchaPrivateKey' => array(
- 'group_name' => 'CiviCRM Preferences',
- 'group' => 'core',
- 'name' => 'recaptchaPrivateKey',
- 'prefetch' => 1,
- // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
- 'config_only' => 1,
- //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
- 'type' => 'String',
- 'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 64,
'maxlength' => 64,
//@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'Integer',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 3,
'maxlength' => 5,
// prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
'type' => 'Integer',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 2,
'maxlength' => 8,
'prefetch' => 0,
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 64,
'maxlength' => 128,
'prefetch' => 0,
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 64,
'maxlength' => 128,
//@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 16,
'maxlength' => 16,
'description' => NULL,
'help_text' => NULL,
),
- 'profile_double_optin' => array(
- 'group_name' => 'Mailing Preferences',
- 'group' => 'mailing',
- 'name' => 'profile_double_optin',
- 'type' => 'Integer',
- 'html_type' => 'checkbox',
- 'default' => 0,
- 'add' => '4.1',
- 'title' => 'Enable Double Opt-in for Profile Group(s) field',
- 'is_domain' => 1,
- 'is_contact' => 0,
- 'description' => 'When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.',
- 'help_text' => NULL,
- ),
'profile_add_to_group_double_optin' => array(
'group_name' => 'Mailing Preferences',
'group' => 'mailing',
'prefetch' => 0,
'type' => 'String',
'quick_form_type' => 'Element',
- 'html_type' => 'text',
'html_attributes' => array(
'size' => 64,
'maxlength' => 64,
'sample' => 'Unsupervised',
),
),
- 'CRM_Mailing_Event_DAO_Subscribe' => array(
- array(
- 'fieldName' => 'group_id',
- 'sample' => $group_name,
- ),
- ),
'CRM_Activity_DAO_Activity' => array(
array(
'fieldName' => 'activity_type_id',
* @throws Exception
*/
public function contactTypeDelete($contactTypeId) {
- require_once 'CRM/Contact/BAO/ContactType.php';
$result = CRM_Contact_BAO_ContactType::del($contactTypeId);
if (!$result) {
throw new Exception('Could not delete contact type');
$expected = array(
'Soft Credit To 1' => "{$softCreditFname} {$softCreditLname}",
'Soft Credit To 2' => "{$softCreditSecondFname} {$softCreditSecondLname}",
- 'Amount (Soft Credit Type)' => '50.00 (Solicited)',
'Amount (Soft Credit Type)' => '100.00 (In Honor of)',
);
));
$contactIDs['b'] = $this->individualCreate(array(
'email' => 'exclude.me@example.org',
- 'last_name' => 'Excluder',
'last_name' => 'Excluder'
));
$this->callAPISuccess('GroupContact', 'create', array(
));
$contactIDs['excludeme'] = $this->individualCreate(array(
'email' => 'exclude.me@example.org',
- 'last_name' => 'Excluder',
- 'last_name' => 'Excluder'
+ 'last_name' => 'Excluder',
));
$this->callAPISuccess('GroupContact', 'create', array(
'group_id' => $groupIDs['inc'],
$this->assertEquals(array('alice@example.org', 'bob@example.org', 'carol@example.org'), $deliveredEmails);
}
+ /**
+ * @return array
+ */
public function submitProvider() {
$cases = array(); // $useLogin, $params, $expectedFailure, $expectedJobCount
$cases[] = array(
*/
public function testMailerDeleteSuccess() {
$result = $this->callAPISuccess($this->_entity, 'create', $this->_params);
- $jobs = $this->callAPIAndDocument($this->_entity, 'delete', array('id' => $result['id']), __FUNCTION__, __FILE__);
+ $this->callAPIAndDocument($this->_entity, 'delete', array('id' => $result['id']), __FUNCTION__, __FILE__);
$this->assertAPIDeleted($this->_entity, $result['id']);
}
'body' => 'Body...',
'time_stamp' => '20111109212100',
);
- $result = $this->callAPIFailure('mailing_event', 'bounce', $params,
+ $this->callAPIFailure('mailing_event', 'bounce', $params,
'Queue event could not be found'
);
}
'event_subscribe_id' => '123',
'time_stamp' => '20111111010101',
);
- $result = $this->callAPIFailure('mailing_event', 'confirm', $params,
+ $this->callAPIFailure('mailing_event', 'confirm', $params,
'Confirmation failed'
);
}
'replyTo' => $this->_email,
'time_stamp' => '20111111010101',
);
- $result = $this->callAPIFailure('mailing_event', 'reply', $params,
+ $this->callAPIFailure('mailing_event', 'reply', $params,
'Queue event could not be found'
);
}
'email' => $this->_email,
'time_stamp' => '20111111010101',
);
- $result = $this->callAPIFailure('mailing_event', 'forward', $params,
+ $this->callAPIFailure('mailing_event', 'forward', $params,
'Queue event could not be found'
);
}
'financial_account_id' => 12,
'is_active' => 1,
'is_default' => 1,
- 'is_default' => 1,
'user_name' => 'dummy',
'url_site' => 'http://dummy.com',
'url_recur' => 'http://dummyrecur.com',
if (!(self::$_tasks)) {
self::$_tasks = array(
1 => ts('Perform First Task'),
- 1 => ts('Perform Second Task'),
+ 2 => ts('Perform Second Task'),
5 => ts('Perform Third Task'),
);
}