您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

drupal7: node作者被删后,对node重设uid

2024/3/21 20:59:45发布16次查看
$nids = db_query('select nid from node where not exists(select null from users where users.uid = node.uid)')->fetchcol(); foreach($nids as $nid) { $node = node_load($nid); $node->uid = 0; node_save($node); }
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product