Commit af00ced5 authored by colemanw's avatar colemanw

Use PascalCase with CRM_Core_Form::addEntityRef

Although entityRef fields accept either snake_case or CamelCase, let's be consistent.
parent 74e8320f
......@@ -599,7 +599,7 @@ INNER JOIN civicrm_group grp ON ( grp.id = campgrp.entity_id )
if ($connectedCampaignId || ($isCampaignEnabled && $hasAccessCampaign)) {
$showAddCampaign = TRUE;
$campaign = $form->addEntityRef('campaign_id', ts('Campaign'), [
'entity' => 'campaign',
'entity' => 'Campaign',
'create' => TRUE,
'select' => ['minimumInputLength' => 0],
]);
......
......@@ -191,7 +191,7 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
$this->add('wysiwyg', 'instructions', ts('Introduction'), $attributes['instructions']);
$this->addEntityRef('campaign_id', ts('Campaign'), [
'entity' => 'campaign',
'entity' => 'Campaign',
'create' => TRUE,
'select' => ['minimumInputLength' => 0],
]);
......
......@@ -130,7 +130,7 @@ class CRM_Campaign_Form_Survey_Main extends CRM_Campaign_Form_Survey {
$this->addSelect('activity_type_id', array('option_url' => 'civicrm/admin/campaign/surveyType'), TRUE);
$this->addEntityRef('campaign_id', ts('Campaign'), [
'entity' => 'campaign',
'entity' => 'Campaign',
'create' => TRUE,
'select' => ['minimumInputLength' => 0],
]);
......
......@@ -23,7 +23,7 @@ class CRM_Case_Form_AddToCaseAsRole extends CRM_Contact_Form_Task {
$this->addEntityRef(
'assign_to',
ts('Assign to'),
array('entity' => 'case'),
array('entity' => 'Case'),
TRUE
);
......
......@@ -1093,7 +1093,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
else {
// FIXME: This won't work with customFieldOptions hook
$attributes += array(
'entity' => 'option_value',
'entity' => 'OptionValue',
'placeholder' => $placeholder,
'multiple' => $search,
'api' => array(
......
......@@ -78,7 +78,7 @@ class CRM_Core_Form_Tag {
$tagset[$tagsetItem]['tagsetElementName'] = $tagsetElementName;
$form->addEntityRef("{$tagsetElementName}[{$parentId}]", $parentNameItem, array(
'entity' => 'tag',
'entity' => 'Tag',
'multiple' => TRUE,
'create' => !$skipTagCreate,
'api' => array('params' => array('parent_id' => $parentId)),
......
......@@ -581,14 +581,14 @@ class CRM_Event_BAO_Query extends CRM_Core_BAO_Query {
$form->assign('dataURLEventFee', $dataURLEventFee);
$form->addEntityRef('event_id', ts('Event Name'), array(
'entity' => 'event',
'entity' => 'Event',
'placeholder' => ts('- any -'),
'multiple' => 1,
'select' => array('minimumInputLength' => 0),
)
);
$form->addEntityRef('event_type_id', ts('Event Type'), array(
'entity' => 'option_value',
'entity' => 'OptionValue',
'placeholder' => ts('- any -'),
'select' => array('minimumInputLength' => 0),
'api' => array(
......
......@@ -57,7 +57,7 @@ class CRM_Event_Form_ManageEvent_Conference extends CRM_Event_Form_ManageEvent {
);
$this->addEntityRef('parent_event_id', ts('Parent Event'), array(
'entity' => 'event',
'entity' => 'Event',
'placeholder' => ts('- any -'),
'select' => array('minimumInputLength' => 0),
)
......
......@@ -635,7 +635,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
}
$eventFieldParams = array(
'entity' => 'event',
'entity' => 'Event',
'select' => array('minimumInputLength' => 0),
'api' => array(
'extra' => array('campaign_id', 'default_role_id', 'event_type_id'),
......
......@@ -238,7 +238,7 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event {
'operatorType' => CRM_Report_Form::OP_ENTITYREF,
'type' => CRM_Utils_Type::T_INT,
'attributes' => array(
'entity' => 'event',
'entity' => 'Event',
'select' => array('minimumInputLength' => 0),
),
),
......
......@@ -180,7 +180,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event {
'operatorType' => CRM_Report_Form::OP_ENTITYREF,
'type' => CRM_Utils_Type::T_INT,
'attributes' => array(
'entity' => 'event',
'entity' => 'Event',
'select' => array('minimumInputLength' => 0),
),
),
......
......@@ -58,7 +58,7 @@ return array(
'title' => ts('Multisite Domain Group'),
'type' => 'Integer',
'html_type' => 'entity_reference',
'entity_reference_options' => ['entity' => 'group', 'select' => array('minimumInputLength' => 0)],
'entity_reference_options' => ['entity' => 'Group', 'select' => array('minimumInputLength' => 0)],
'default' => '0',
'add' => '4.1',
'is_domain' => 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment