| 1 field_group.install | field_group_update_1002() |
Warn that field_group_extra module needs to be downloaded and installed if Accordion, Div, Horizontal Tabs, and Multipage types are enabled.
File
- core/
modules/ field_group/ field_group.install, line 153 - Field group module install file.
Code
function field_group_update_1002() {
list($extras_module, $extras_enabled) = _field_group_extra_status();
if ($extras_enabled) {
if ($extras_module === FALSE) {
// Module not found.
backdrop_set_message(t('The <em>Accordion</em>, <em>Div</em>, <em>Horizontal tabs</em>, and <em>Multipage</em> field group types have been moved out of the Field Group module. Your website uses one or more of these group types. Download and enable the contrib module !module to ensure the existing field groups continue to work properly. Alternatively, update those field groups to use other group types.', array(
'!module' => l('Field Group Extra', 'https://backdropcms.org/project/field_group_extra'),
)));
}
elseif (!$extras_module) {
// Module exists but isn't enabled.
db_update('system')
->fields(array('status' => 1))
->condition('name', 'field_group_extra')
->execute();
backdrop_set_message(t('The contrib module %module has been enabled to ensure the existing field groups continue to work properly. Alternatively, update those field groups to use other group types.', array(
'%module' => 'Field Group Extra',
)));
}
}
}