mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/site_users.git
synced 2026-03-16 04:46:11 -03:00
feat: Remove field_user_category (gerenciado em outro módulo)
Remove os arquivos de config field.storage, field.field e translation referentes ao field_user_category, e elimina todas as referências ao campo em site_users.module, site_users.install e UserInfoBlock.php. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -42,19 +42,6 @@ function site_users_install() {
|
||||
]);
|
||||
}
|
||||
|
||||
// Campo Categoria.
|
||||
if (!$form_display->getComponent('field_user_category')) {
|
||||
$form_display->setComponent('field_user_category', [
|
||||
'type' => 'string_textfield',
|
||||
'weight' => 12,
|
||||
'settings' => [
|
||||
'size' => 60,
|
||||
'placeholder' => '',
|
||||
],
|
||||
'region' => 'content',
|
||||
]);
|
||||
}
|
||||
|
||||
// Campo Fotos - Media Library widget.
|
||||
if (!$form_display->getComponent('field_user_photos')) {
|
||||
$form_display->setComponent('field_user_photos', [
|
||||
@@ -115,19 +102,6 @@ function site_users_install() {
|
||||
]);
|
||||
}
|
||||
|
||||
// Campo Categoria.
|
||||
if (!$view_display->getComponent('field_user_category')) {
|
||||
$view_display->setComponent('field_user_category', [
|
||||
'type' => 'string',
|
||||
'weight' => 12,
|
||||
'label' => 'above',
|
||||
'settings' => [
|
||||
'link_to_entity' => FALSE,
|
||||
],
|
||||
'region' => 'content',
|
||||
]);
|
||||
}
|
||||
|
||||
// Campo Fotos.
|
||||
if (!$view_display->getComponent('field_user_photos')) {
|
||||
$view_display->setComponent('field_user_photos', [
|
||||
|
||||
Reference in New Issue
Block a user