Php 如何从drupal API获取google recaptcha公钥?
我需要手动呈现recaptcha,因此我需要一种从Dupal7API获取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
admin/config/spam\u protection/google\u repatcha对于遇到此问题的任何人,我都能够以在google\u repatcha模块中检索的方式获取密钥和公钥,如下所示
variable_get('google_recaptcha')['public_key'];
variable_get('google_recaptcha')['secret_key'];