Add support for flexinodes.

Thanks

Comments

arnabdotorg’s picture

Status: Active » Closed (won't fix)

Flexinode is being replaced by CCK, hence I'd rather code for it.

baraban’s picture

Assigned: Unassigned » baraban
Status: Closed (won't fix) » Needs review

It is very easy to fix this, just by adding one line of code to the captcha module:

Simply replace:

  foreach($user->roles as $role) {
    $candidate_trigger = $formid .'_'. strtr($role,' ','_') .'_captcha';

with:

  $formname = substr($formid,0,9) == "flexinode" ? "node_form" : $formid;
  foreach($user->roles as $role) {
    $candidate_trigger = $formname .'_'. strtr($role,' ','_') .'_captcha';
wundo’s picture

Status: Needs review » Closed (fixed)