*
* Generated from xml/schema/CRM/PCP/PCP.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9f11f3e21038c8027ad0e97497ccc356)
+ * (GenCodeChecksum:580fcea1bad18a3de9e966545756fbe7)
*/
/**
/**
* Is Personal Campaign Page enabled/active?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Notify owner via email when someone donates to page?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
'description' => ts('Is Personal Campaign Page enabled/active?'),
+ 'required' => TRUE,
'where' => 'civicrm_pcp.is_active',
- 'default' => '0',
+ 'default' => '1',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Notify Owner?'),
'description' => ts('Notify owner via email when someone donates to page?'),
+ 'required' => TRUE,
'where' => 'civicrm_pcp.is_notify',
'default' => '0',
'table_name' => 'civicrm_pcp',
*
* Generated from xml/schema/CRM/PCP/PCPBlock.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5528529230e5f5dbcfa0466ada0514d1)
+ * (GenCodeChecksum:4b4cbd3c471584e645cd442b994b73bb)
*/
/**
/**
* Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Does Personal Campaign Page allow using tell a friend?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is Personal Campaign Page Block enabled/active?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Approval Required?'),
'description' => ts('Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?'),
+ 'required' => TRUE,
'where' => 'civicrm_pcp_block.is_approval_needed',
- 'default' => NULL,
+ 'default' => '0',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'bao' => 'CRM_PCP_BAO_PCPBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Tell a Friend Enabled?'),
'description' => ts('Does Personal Campaign Page allow using tell a friend?'),
+ 'required' => TRUE,
'where' => 'civicrm_pcp_block.is_tellfriend_enabled',
- 'default' => NULL,
+ 'default' => '0',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'bao' => 'CRM_PCP_BAO_PCPBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
'description' => ts('Is Personal Campaign Page Block enabled/active?'),
+ 'required' => TRUE,
'where' => 'civicrm_pcp_block.is_active',
'default' => '1',
'table_name' => 'civicrm_pcp_block',
--- /dev/null
+<?php
+return [
+ 'civicrm_pcp' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'Is Personal Campaign Page enabled/active?'",
+ 'is_notify' => "DEFAULT 0 COMMENT 'Notify owner via email when someone donates to page?'",
+ ],
+ 'civicrm_pcp_block' => [
+ 'is_approval_needed' => "DEFAULT 0 COMMENT 'Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?'",
+ 'is_tellfriend_enabled' => "DEFAULT 0 COMMENT 'Does Personal Campaign Page allow using tell a friend?'",
+ 'is_active' => "DEFAULT 1 COMMENT 'Is Personal Campaign Page Block enabled/active?'",
+ ],
+
+];
<title>Enabled?</title>
<type>boolean</type>
<comment>Is Personal Campaign Page enabled/active?</comment>
- <default>0</default>
+ <default>1</default>
+ <required>true</required>
<add>2.2</add>
<html>
<type>CheckBox</type>
<type>boolean</type>
<comment>Notify owner via email when someone donates to page?</comment>
<default>0</default>
+ <required>true</required>
<add>4.6</add>
<html>
<type>CheckBox</type>
<title>Approval Required?</title>
<type>boolean</type>
<comment>Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment>
- <default>NULL</default>
+ <default>0</default>
+ <required>true</required>
<add>2.2</add>
</field>
<field>
<title>Tell a Friend Enabled?</title>
<type>boolean</type>
<comment>Does Personal Campaign Page allow using tell a friend?</comment>
- <default>NULL</default>
+ <default>0</default>
+ <required>true</required>
<add>2.2</add>
</field>
<field>
<type>boolean</type>
<comment>Is Personal Campaign Page Block enabled/active?</comment>
<default>1</default>
+ <required>true</required>
<add>2.2</add>
</field>
<field>