];
if (CRM_Core_Config::singleton()->userSystem->supports_form_extensions) {
- $ufGroupType += [
- 'User Registration' => ts('Drupal User Registration'),
- 'User Account' => ts('View/Edit Drupal User Account'),
- ];
+ $ufGroupType += CRM_Core_Config::singleton()->userSystem->getUfGroupTypes();
}
return $ufGroupType;
}
return str_replace(parent::getCRMDatabasePrefix(), '`', '');
}
+ /**
+ * Return the CMS-specific UF Group Types for profiles.
+ * @return array
+ */
+ public function getUfGroupTypes() {
+ return [
+ 'User Registration' => ts('Backdrop User Registration'),
+ 'User Account' => ts('View/Edit Backdrop User Account'),
+ ];
+ }
+
}
return TRUE;
}
+ /**
+ * Return the CMS-specific UF Group Types for profiles.
+ * @return array
+ */
+ public function getUfGroupTypes() {
+ return [];
+ }
+
}
return ['ufAccessURL' => url('admin/people/permissions')];
}
+ /**
+ * Return the CMS-specific UF Group Types for profiles.
+ * @return array
+ */
+ public function getUfGroupTypes() {
+ return [
+ 'User Registration' => ts('Drupal User Registration'),
+ 'User Account' => ts('View/Edit Drupal User Account'),
+ ];
+ }
+
}