Add more support for defining a pseudoconstant for a setting
[civicrm-core.git] / settings / Contribute.setting.php
index b9bd3699f0a8d7efbeaeac58f6d36fbfb4aa465f..57b57eda2a6e2a03c55493d318df7cb77508cfdb 100644 (file)
@@ -188,8 +188,9 @@ return [
     'quick_form_type' => 'Select',
     'default' => NULL,
     'pseudoconstant' => [
-      // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
-      'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
+      'table' => 'civicrm_contribution_page',
+      'keyColumn' => 'id',
+      'labelColumn' => 'title',
     ],
     'html_type' => 'select',
     'add' => '4.7',