function CampaignMonitor::listCreateCustomField in Campaign Monitor 5.2
Same name and namespace in other branches
- 6.3 lib/CMBase.php \CampaignMonitor::listCreateCustomField()
- 6.2 lib/CMBase.php \CampaignMonitor::listCreateCustomField()
*
Parameters
Non-displayable characters.File
- lib/
CMBase.php, line 1459
Class
Code
function listCreateCustomField($list_id, $fieldName, $dataType, $options) {
if ($dataType == 'Text' || $dataType == 'Number') {
$options = null;
}
return $this
->makeCall('List.CreateCustomField', array(
'params' => array(
'ListID' => $list_id,
'FieldName' => $fieldName,
'DataType' => $dataType,
'Options' => $options,
),
));
}