且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以使用Drupal api获取用户列表?

更新时间:2021-07-19 22:57:44

通常没有Drupal API这种任务的功能(提升符合特定标准的实体)。它倾向于集中在API中的单实体CRUD函数;一切都取决于开发人员自己的SQL技能。

There are generally no Drupal API functions for this sort of task (pulling up entities that match certain criteria). It tends to focus on single-entity CRUD functions in the API; everything else is up to a developer's own SQL skills.

Views模块允许您构建通过角色,权限等过滤的用户列表,但可以很容易地overkill。

The Views module allows you to build lists of users filtered by role, permission, etc -- but it could easily be overkill.