watchdog('boost','expire_user() <br />User !uid was deleted resulting in !flushed pages being expired from the cache',array('!uid'=>$account->uid,'!flushed'=>$flushed));
}
break;
}
}
/**
* Expires a node from the cache; including related pages.
watchdog('expire','expire_node() <br />Node !nid was flushed resulting in !flushed pages being expired from the cache',array('!nid'=>$node->nid,'!flushed'=>$flushed));
}
}
/**
* Finds parent, siblings and children of the menu item. UGLY CODE...
*
* @param array $menu
* Output from menu_tree_all_data()
* @param bool $found
* Signal for when the needle was found in the menu array.
* Set TRUE to get entire menu
* @param string $needle
* Name of menu link. Example 'node/21'
* @param bool $first
* Keep track of the first call; this is a recursive function.
* @param bool &$found_global
* Used to signal the parent item was found in one of it's children
* @param bool &$menu_out
* Output array of parent, siblings and children menu links
*
* TODO: Use page_callback and page_arguments instead of link_path.
* Needed because of a weird bug with CCK & node_load()
* http://drupal.org/node/545922
*/
functionexpire_taxonomy_node_get_tids($nid){
$vid=db_result(db_query('SELECT vid FROM {node} WHERE nid = %d',$nid));
$result=db_query(db_rewrite_sql('SELECT t.tid FROM {term_node} r INNER JOIN {term_data} t ON r.tid = t.tid INNER JOIN {vocabulary} v ON t.vid = v.vid WHERE r.vid = %d ORDER BY v.weight, t.weight, t.name','t','tid'),$vid);
$tids=array();
while($term=db_result($result)){
$tids[]=$term;
}
return$tids;
}
/**
* Finds all possible paths/redirects/aliases given the root path.