// expects: interface_ids
$known_actions []="add-interface";
// expects: node_id & interface details
+$known_actions []="new-interface";
+// expects: node_id
$known_actions []="update-interface";
// expects: interface_id & interface details
drupal_set_error ("Could not delete all selected interfaces, only $counter were removed");
plc_redirect(l_node($_POST['node_id']));
}
-
+ case 'new-interface': {
+ plc_redirect(l_interface_add($_POST['node_id']));
+ }
case 'add-interface': {
$node_id=$_POST['node_id'];
foreach ($interface_details as $field) {
if ($privileges) {
$table->tfoot_start();
$table->row_start();
- $add_button=new PlekitFormButton (l_interface_add($node_id),"add","Add Interface","GET");
// we should have 6 cols, use 3 for the left (new) and the rest for the right (remove)
- $table->cell($add_button->html(),array('columns'=> 3,'align'=>'left'));
+ //$add_button=new PlekitFormButton (l_interface_add($node_id),"add","Add Interface","GET");
+ //$table->cell($add_button->html(),array('columns'=> 3,'align'=>'left'));
+ $table->cell($form->submit_html("new-interface","Add Interface"),
+ array('columns'=> 3,'align'=>'left'));
$table->cell($form->submit_html("delete-interfaces","Remove Interfaces"),
array('columns'=>$table->columns()-3,'align'=>'right'));
$table->row_end();