You are here

function _captcha_generate_example_challenge in CAPTCHA 7

Same name and namespace in other branches
  1. 6.2 captcha.admin.inc \_captcha_generate_example_challenge()

Helper function for generating an example challenge.

1 call to _captcha_generate_example_challenge()
captcha_examples in ./captcha.admin.inc
Funtion for generating a page with CAPTCHA examples.

File

./captcha.admin.inc, line 556
Functionality and helper functions for CAPTCHA administration.

Code

function _captcha_generate_example_challenge($module, $type) {
  return array(
    '#type' => 'captcha',
    '#captcha_type' => $module . '/' . $type,
    '#captcha_admin_mode' => TRUE,
  );
}