function tft_node_prepare in Taxonomy File Tree 7
Same name and namespace in other branches
- 7.2 tft.module \tft_node_prepare()
Implementation of hook_node_prepare()
File
- ./
tft.module, line 326 - Module hooks.
Code
function tft_node_prepare($node) {
$setting = tft_get_file_setting();
if ($node->type == $setting['type']) {
if (isset($_GET['tid']) && tft_term_access((int) $_GET['tid'])) {
$node->tft_folder[LANGUAGE_NONE][0]['tid'] = (int) $_GET['tid'];
}
}
}