有没有办法在 Drupal 中将视图批量操作添加到自定义 table?

Is there a way to add views bulk operations to a custom table in Drupal?

我使用主题 table 从自定义模块创建了自定义 table; theme('table', array('header' => $table_header, 'rows' => $data)); 无法从视图中检索我显示的数据,因为我显示的是来自第三方服务的数据,并且此数据未保存在数据库中。

有没有办法将 VBO 添加到我的自定义 table?

谢谢。

不,您不能添加不使用核心 drupal 字段 api 的 vbo 功能。来自 3rd 方服务的数据将需要导入到字段中,以便 BVO 正常工作。

您必须声明 hook_entity_info() 因为: VBO 仅支持实体(基础或修订)table 实施 hook_entity_info() 并使您的 table 成为实体。使用 EntityAPIController 这样您就不需要编写其他样板函数。 https://www.drupal.org/node/1282486

是的 possible.We 可以使用贡献的数据 module.This 模块绑定自定义 table 数据和 relationship.after 我们可以通过视图集成或为该数据创建视图 table 实体。