In the xstandard_process_textarea(); function, an assumption is made that $element['#suffix'] doesn't already exist and so is unconditionally set. It would be helpful if it was changed to something like:

    $notice = '<span class="xstandard-id">'. t('Use XStandard to edit @title content by including this id: %id', array('@title' => $element['#title'], '%id' => $element['#id'])) .'</span>';
    $element['#suffix'] = (!empty($element['#suffix']) ? $element['#suffix'] : '') . $notice;

Or even just:

    $element['#suffix'] .= '<span class="xstandard-id">'. t('Use XStandard to edit @title content by including this id: %id', array('@title' => $element['#title'], '%id' => $element['#id'])) .'</span>';

I have data I'm throwing into #suffix that this module is overwriting.

Comments

henrrrik’s picture

Assigned: Unassigned » henrrrik
Status: Active » Fixed

Good idea. Commited. Apologies for letting this gather dust.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.