Delete field_group programmatically

流过昼夜 提交于 2019-12-04 07:46:50

ctools is a dependency of field_group. If you want to interact with field groups programmatically, you'll need to do so through ctools' API.

Fortunately, it isn't hard in this case. Something like the following should work:

if ($group = field_group_load_field_group($group_name, $entity_type, $bundle_name, $mode)) {
  ctools_include('export');
  field_group_group_export_delete($group, FALSE);
}

Just grep for those functions in the field_group module for more information.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!