*
* Generated from standaloneusers/xml/schema/CRM/Standaloneusers/Role.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:afe744210fe5b5d38bf16ae05677a749)
+ * (GenCodeChecksum:b027d757eff8ad3b630c304037699382)
*/
use CRM_Standaloneusers_ExtensionUtil as E;
/**
* Only active roles grant permissions
*
- * @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' => E::ts('Role is active'),
'description' => E::ts('Only active roles grant permissions'),
+ 'required' => TRUE,
'usage' => [
'import' => FALSE,
'export' => FALSE,
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
+ 'label' => E::ts("Enabled"),
],
'add' => NULL,
],
*
* Generated from standaloneusers/xml/schema/CRM/Standaloneusers/User.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bb2c741901a689ff804ab65d05c7795b)
+ * (GenCodeChecksum:08b152ee7b327be88d44e2fce7c528ea)
*/
use CRM_Standaloneusers_ExtensionUtil as E;
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
+ 'label' => E::ts("Enabled"),
],
'add' => NULL,
],
'type' => 'field',
'key' => 'is_active',
'dataType' => 'Boolean',
- 'label' => E::ts('Active'),
+ 'label' => E::ts('Enabled'),
'sortable' => TRUE,
'rewrite' => '',
'alignment' => '',
'type' => 'field',
'key' => 'is_active',
'dataType' => 'Boolean',
- 'label' => E::ts('Active?'),
+ 'label' => E::ts('Enabled'),
'sortable' => TRUE,
'editable' => TRUE,
],
`name` varchar(60) NOT NULL COMMENT 'Machine name for this role',
`label` varchar(128) NOT NULL COMMENT 'Human friendly name for this role',
`permissions` text NOT NULL COMMENT 'List of permissions granted by this role',
- `is_active` tinyint DEFAULT 1 COMMENT 'Only active roles grant permissions',
+ `is_active` tinyint NOT NULL DEFAULT 1 COMMENT 'Only active roles grant permissions',
PRIMARY KEY (`id`)
)
ENGINE=InnoDB;
<comment>Only active roles grant permissions</comment>
<type>boolean</type>
<default>1</default>
+ <required>true</required>
<html>
<type>CheckBox</type>
+ <label>Enabled</label>
</html>
</field>
<required>true</required>
<html>
<type>CheckBox</type>
+ <label>Enabled</label>
</html>
</field>