X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fcommon%2Factions.php;h=f7d77dfd33aeca937d8c5f45e704753c5710fe1a;hb=f9a23a0eb7f2c6eed5a0f0362ba3d1a627ef066a;hp=eff610a7f00cb0b6da9efcb3aa8b699ea9d67f7f;hpb=f6a2932293df952775778e7e42ed4e7a6e3ed19c;p=plewww.git diff --git a/planetlab/common/actions.php b/planetlab/common/actions.php index eff610a..f7d77df 100644 --- a/planetlab/common/actions.php +++ b/planetlab/common/actions.php @@ -57,6 +57,8 @@ $known_actions []= "delete-interfaces"; // 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 @@ -383,7 +385,9 @@ switch ($action) { 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) {