Projet

Général

Profil

Révision 00c2605a

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/captcha/image_captcha/image_captcha.module
246 246
        );
247 247
        $img_src = check_url(url("image_captcha", $options));
248 248
        list($width, $height) = _image_captcha_image_size($code);
249
        // TODO: start using a theming funtion for generating the image markup?
250 249
        $result['form']['captcha_image'] = array(
251
          '#type' => 'markup',
252
          '#markup' => '<img src="' . $img_src
253
          . '" width="' . $width . '" height="' . $height
254
          . '" alt="' . t('Image CAPTCHA') . '" title="' . t('Image CAPTCHA') . '" />',
250
          '#theme' => 'image',
255 251
          '#weight' => -2,
252
          '#path' => $img_src,
253
          '#width' => $width,
254
          '#height' => $height,
255
          '#title' => t('Image CAPTCHA'),
256
          '#alt' => t('Image CAPTCHA'),
256 257
        );
257 258
        $result['form']['captcha_response'] = array(
258 259
          '#type' => 'textfield',

Formats disponibles : Unified diff