git://git.onelab.eu
/
plewww.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ckp
[plewww.git]
/
planetlab
/
includes
/
plc_functions.php
diff --git
a/planetlab/includes/plc_functions.php
b/planetlab/includes/plc_functions.php
index
8ea281d
..
9a5eff5
100644
(file)
--- a/
planetlab/includes/plc_functions.php
+++ b/
planetlab/includes/plc_functions.php
@@
-306,6
+306,12
@@
function truncate ($text,$numb,$etc = "...") {
}
return $text;
}
+function html_div ($text,$class="") {
+ $html="<div";
+ if ($class) $html .= " class='$class'";
+ $html .= ">$text</div>";
+ return $html;
+}
if (! function_exists ("drupal_set_error")) {
function drupal_set_error ($text) {