Hope you all are having a great Christmas, in the middle of your festivities take a moment to think of the children of the world who didn’t have the “turkey and fixings” this year.
Latest Updates RSS
-
Dan
-
Dan
If you need a great yet simple PHP REST Server class look no further than:
https://github.com/deepeshmalviya/simple-rest
Well made and dead simple to use.
-
Dan
Here’s a dandy function I banged out today for Drupal to reorder a tree taxonomy in alphabetical order.
function reordertaxonomy($tid) {
$sql = 'SELECT term_data.tid, name, weight FROM term_data JOIN term_hierarchy ON term_hierarchy.tid = term_data.tid WHERE term_hierarchy.parent = ' . $tid;
$result = db_query($sql);
if ($result) {
$neworder = array();
while ($row = db_fetch_object($result)) {
$neworder[$row->name] = $row->tid;
reordertaxonomy($row->tid);
}
ksort($neworder);
print_r($neworder);
$i = 0;
foreach ($neworder as $termid) {
$updatesql = 'UPDATE term_data SET weight = "' . $i . '" WHERE tid = "' . $termid . '"';
db_query($updatesql);
$i++;
}
}
}
-
Dan
If you have a moment stop by https://www.facebook.com/LittleBittyBlossoms and check out her awesome hair flowers for girls. If you like em, like her page and buy a few for you and your friends!
-
Dan
In Drupal when working with bread crumbs the Custom Breadcrumbs module blows Hansel out of the water. Less complicated and much more intuitive.