X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fincludes%2Fplc_functions.php;h=526991ac37dd8dfaa1d427fed1770a5c1296b477;hb=350bb4d9c096b0cfb877fb67ab94ebac753a98a5;hp=ea34b784c05f6e5e5a9ae7a5946165059d0c9cac;hpb=bc69546bd6a533ce02ec4e8efb8abeeb459c584c;p=plewww.git diff --git a/planetlab/includes/plc_functions.php b/planetlab/includes/plc_functions.php index ea34b78..526991a 100644 --- a/planetlab/includes/plc_functions.php +++ b/planetlab/includes/plc_functions.php @@ -47,6 +47,8 @@ function href ($url,$text) { return "" . $text . ""; // l_object_add () -> the url to that object-afding page function l_actions () { return "/db/actions.php"; } +// some complex node actions are kept separate, e.g. the ones related to getbootmedium +function l_actions_download () { return "/db/nodes/node_downloads.php"; } function l_nodes () { return "/db/nodes/index.php"; } function l_nodes_peer ($peer_id) { return "/db/nodes/index.php?peerscope=$peer_id"; } @@ -287,9 +289,9 @@ function plc_errors ($errors) { } } -function plc_warning_text ($text) { return "" . $text . "";} -function plc_warning ($text) { print plc_warning_text("Warning " . $text); } -function plc_foreign_text($text) { return "$text"; } +function plc_warning_html ($text) { return "" . $text . "";} +function plc_warning ($text) { print plc_warning_html("Warning " . $text); } +function plc_foreign_html($text) { return "$text"; } // shows a php variable verbatim with a heading message function plc_debug ($message,$object) { @@ -315,7 +317,7 @@ if (! function_exists ("drupal_set_error")) { //////////////////////////////////////////////////////////// sort out for obsolete / trash // builds a table from an array of strings, with the given class // attempt to normalize the delete buttons and confirmations -function plc_delete_button($width=15) { +function plc_delete_icon($width=15) { return 'Delete this entry'; } @@ -328,7 +330,7 @@ function plc_delete_link($url,$delete_message,$visible) { } function plc_delete_link_button($url,$delete_message,$width=15) { - return "" . plc_delete_button($width) . ""; + return "" . plc_delete_icon($width) . ""; } function plc_event_button($type,$param,$id) {