Warning: Undefined array key "HTTPS" in include() (line 29 of /opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php).
include('/opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php') (Line: 4)
require('/opt/www/fdv2/drupal.stage/web/sites/drupal001.net/settings.php') (Line: 145)
Drupal\Core\Site\Settings::initialize('/opt/www/fdv2/drupal.stage/web', 'sites/drupal001.net', Object) (Line: 1099)
Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 701)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
ctools_content_render() 载入的表单提示过期 - Drupal大学 - Drupal问答论坛
首页 / 帖子
ctools_content_render() 载入的表单提示过期

请问有人用过ctools api 吗?

我用flexiforms对一个entity类型的添加页面生成一个pane,如下:



然后在某个node中,用代码载入这个pane(因为有判断语句,不能直接用display suite加载),代码如下:

<?php 
ctools_include('context');
ctools_include('content');
$pane = ctools_content_render('add_pane', 'plant_collection', array());
print render($pane->content);
?>

最后编辑这个pane中的表单并提交,提示表单已经过期:The form has become outdated. 


0个答案