| 52 |
'#attributes' => array('class' => 'table-styles'), |
'#attributes' => array('class' => 'table-styles'), |
| 53 |
); |
); |
| 54 |
$form['tabs']['#tree'] = TRUE; |
$form['tabs']['#tree'] = TRUE; |
| 55 |
|
$form['tabs']['table']['width-custom'] = array( |
| 56 |
|
'#type' => 'textfield', |
| 57 |
|
'#size' => 8, |
| 58 |
|
'#value' => '25px', |
| 59 |
|
'#name' => 'tabs[table][width-custom]', // set our own name tag as we're using drupal_render |
| 60 |
|
); |
| 61 |
|
$form['tabs']['table']['width'] = array( |
| 62 |
|
'#type' => 'radios', |
| 63 |
|
'#options' => array('auto' => 'auto', '100%' => '100%', '75%' => '75%', '50%' => '50%', 'custom' => drupal_render($form['tabs']['table']['width-custom'])), |
| 64 |
|
'#title' => t('width'), |
| 65 |
|
'#default_value' => '75%', |
| 66 |
|
'#attributes' => array('class' => 'table-options'), |
| 67 |
|
); |
| 68 |
|
$form['tabs']['table']['overflow'] = array( |
| 69 |
|
'#type' => 'radios', |
| 70 |
|
'#options' => array('visible' => 'visible', 'hidden' => 'hidden', 'scroll' => 'scroll', 'auto' => 'auto'), |
| 71 |
|
'#title' => t('overflow'), |
| 72 |
|
'#default_value' => 'auto', |
| 73 |
|
'#attributes' => array('class' => 'table-options'), |
| 74 |
|
); |
| 75 |
$form['tabs']['table']['border-width'] = array( |
$form['tabs']['table']['border-width'] = array( |
| 76 |
'#type' => 'radios', |
'#type' => 'radios', |
| 77 |
'#options' => array('1px' => '1px', '2px' => '2px', '3px' => '3px', '4px' => '4px', '5px' => '5px', 'thin' => 'thin', 'medium' => 'medium', 'thick' => 'thick', '0px' => '0px'), |
'#options' => array('1px' => '1px', '2px' => '2px', '3px' => '3px', '4px' => '4px', '5px' => '5px', 'thin' => 'thin', 'medium' => 'medium', 'thick' => 'thick', '0px' => '0px'), |