NULL => ts('- none -'),
) + $this->_fields, FALSE, $disabled
);
- $this->addField('rule_length', array('entity' => 'Rule', 'name_id' => "length_$count") + $attributes);
- $this->addField('rule_weight', array('entity' => 'Rule', 'name_id' => "weight_$count") + $attributes);
+ $this->addField("length_$count", array('entity' => 'Rule', 'name' => 'rule_length') + $attributes);
+ $this->addField("weight_$count", array('entity' => 'Rule', 'name' => 'rule_weight') + $attributes);
}
$this->addField('threshold', array('label' => ts("Weight Threshold to Consider Contacts 'Matching':")) + $attributes);
$fieldSpec = civicrm_api3($props['entity'], 'getfield', $props);
$fieldSpec = $fieldSpec['values'];
$label = CRM_Utils_Array::value('label', $props, isset($fieldSpec['title']) ? $fieldSpec['title'] : NULL);
- $name = isset($props['name_id']) ? $props['name_id'] : $name;
$widget = isset($props['type']) ? $props['type'] : $fieldSpec['html']['type'];
if ($widget == 'TextArea' && $props['context'] == 'search') {