}}
-
if(! function_exists('paginate')) {
/**
* Automatic pagination.
if (!function_exists('str_getcsv')) {
+ /**
+ * Parse csv string
+ *
+ * @param string $input
+ * @param string $delimiter
+ * @param string $enclosure
+ * @param string $escape
+ * @param string $eol
+ * @return boolean|array False on error, otherwise array[row][column]
+ */
function str_getcsv($input, $delimiter = ',', $enclosure = '"', $escape = '\\', $eol = '\n') {
if (is_string($input) && !empty($input)) {
$output = array();
}
}
+/**
+ * return div element with class 'clear'
+ * @return string
+ * @deprecated
+ */
function cleardiv() {
return '<div class="clear"></div>';
}
/**
* apply xmlify() to all values of array $val, recursively
+ * @param array $val
+ * @return array
*/
function array_xmlify($val){
if (is_bool($val)) return $val?"true":"false";
}
+/**
+ * transorm link href and img src from relative to absolute
+ *
+ * @param string $text
+ * @param string $base base url
+ * @return string
+ */
function reltoabs($text, $base)
{
if (empty($base))
return $text;
}
+/**
+ * get translated item type
+ *
+ * @param array $itme
+ * @return string
+ */
function item_post_type($item) {
if(intval($item['event-id']))
return t('event');