// We only use fields up to (and including) this one.
if($field==$this->options['id']){
break;
}
...
...
@@ -56,7 +58,7 @@ class colorbox_handler_field_colorbox extends views_handler_field {
$form['popup']=array(
'#type'=>'textarea',
'#title'=>t('Popup'),
'#description'=>t('Combine tokens from the "Replacement patterns" below and html to create what the Colorbox popup will become.'),
'#description'=>t('The Colorbox popup content. You may include HTML. You may enter data from this view as per the "Replacement patterns" below.'),
'#default_value'=>$this->options['popup'],
'#weight'=>-11,
);
...
...
@@ -64,7 +66,7 @@ class colorbox_handler_field_colorbox extends views_handler_field {
$form['caption']=array(
'#type'=>'textfield',
'#title'=>t('Caption'),
'#description'=>t('Combine tokens from the "Replacement patterns" below and html to create the caption for the Colorbox. Leave empty for no caption.'),
'#description'=>t('The Colorbox Caption. You may include HTML. You may enter data from this view as per the "Replacement patterns" below.'),
'#default_value'=>$this->options['caption'],
'#weight'=>-10,
);
...
...
@@ -100,19 +102,6 @@ class colorbox_handler_field_colorbox extends views_handler_field {
'#default_value'=>$this->options['width'],
'#weight'=>-6,
);
// Remove the checkboxs and other irrelevant controls.
unset($form['alter']['alter_text']);
unset($form['alter']['make_link']);
unset($form['alter']['text']);
unset($form['alter']['path']);
unset($form['alter']['alt']);
unset($form['alter']['prefix']);
unset($form['alter']['suffix']);
unset($form['alter']['text']['#dependency']);
unset($form['alter']['text']['#process']);
}
/**
...
...
@@ -144,10 +133,24 @@ class colorbox_handler_field_colorbox extends views_handler_field {