| 1 |
<?php |
<?php |
| 2 |
// $Id: index.form.inc,v 1.1.2.16 2009/11/17 16:08:36 xano Exp $ |
// $Id: index.admin.inc,v 1.1.2.1 2009/11/17 17:46:41 xano Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 363 |
|
|
| 364 |
$form['layer_child_add_' . $layer['lineage']] = array( |
$form['layer_child_add_' . $layer['lineage']] = array( |
| 365 |
'#type' => 'submit', |
'#type' => 'submit', |
| 366 |
'#value' => t('Add item (!layer)', array('!layer' => $layer['lineage'])), |
'#value' => t('Add item'), |
| 367 |
'#submit' => array('index_form_add_update'), |
'#submit' => array('index_form_add_update'), |
| 368 |
'#attributes' => array( |
'#attributes' => array( |
| 369 |
'class' => 'index-form-add-layer-child-add', |
'class' => 'index-form-add-layer-child-add', |
| 370 |
'title' => t('Add item'), |
'title' => t('Add item'), |
| 371 |
), |
), |
| 372 |
|
'#name' => 'layer_child_add_' . $layer['lineage'], |
| 373 |
); |
); |
| 374 |
$form['layer_remove_' . $layer['lineage']] = array( |
$form['layer_remove_' . $layer['lineage']] = array( |
| 375 |
'#type' => 'submit', |
'#type' => 'submit', |
| 376 |
'#value' => t('Remove (!layer)', array('!layer' => $layer['lineage'])), |
'#value' => t('Remove'), |
| 377 |
'#submit' => array('index_form_add_update'), |
'#submit' => array('index_form_add_update'), |
| 378 |
'#attributes' => array( |
'#attributes' => array( |
| 379 |
'class' => 'index-form-add-layer-remove', |
'class' => 'index-form-add-layer-remove', |
| 380 |
'title' => t('Remove this item and its children'), |
'title' => t('Remove this item and its children'), |
| 381 |
), |
), |
| 382 |
|
'#name' => 'layer_remove_' . $layer['lineage'], |
| 383 |
); |
); |
| 384 |
|
|
| 385 |
$form['lineages']['#value'][$layer['lineage']] = $depth; |
$form['lineages']['#value'][$layer['lineage']] = $depth; |