Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何从drupal API获取google recaptcha公钥?_Php_Drupal 7_Recaptcha - Fatal编程技术网

Php 如何从drupal API获取google recaptcha公钥?

Php 如何从drupal API获取google recaptcha公钥?,php,drupal-7,recaptcha,Php,Drupal 7,Recaptcha,我需要手动呈现recaptcha,因此我需要一种从Dupal7API获取google recaptcha“公钥”的方法 它当前位于管理面板的以下路径中: admin/config/spam\u protection/google\u repatcha对于遇到此问题的任何人,我都能够以在google\u repatcha模块中检索的方式获取密钥和公钥,如下所示 variable_get('google_recaptcha')['public_key']; variable_get('google

我需要手动呈现recaptcha,因此我需要一种从Dupal7API获取google recaptcha“公钥”的方法

它当前位于管理面板的以下路径中:


admin/config/spam\u protection/google\u repatcha

对于遇到此问题的任何人,我都能够以在google\u repatcha模块中检索的方式获取密钥和公钥,如下所示

variable_get('google_recaptcha')['public_key']; 
variable_get('google_recaptcha')['secret_key'];