Altering the text after a checkbox using the Drupal Form Api I got the following issue. A clients wants that the text after checkboxes are links to other pages and thus between ...

I have the following code:

$form['boxes_brands'] = array(
    '#type' =&gt; 'checkboxes',
    '#title' =&gt; '&lt;div id="title-container"&gt;Merken&lt;/div&gt;',
    '#options' =&gt; $brandArr,
    '#default_value' =&gt; $_SESSION['filter_brands_cat'],
);


$brandArr is an array of brands.

I looked in the Form API of Drupal but I did not find an option to do this. I could alter the values in $brandArr but of course that changes the value of the value attribute of the input object too. 

Using the prefix and suffix options won't work either because I don't want the checkboxes in the  tags too.

Is there a clean way to do this?
You can give the $options as an array of value and label. And the label can then be given as a link using l().

'#options'       =&gt; array(
  'facebook'     =&gt; l(t('Facebook'), 'http://www.facebook.com'),
  'twitter'      =&gt; l(t('Twitter'), 'http://www.twitter.com'),
),