function tft_node_prepare in Taxonomy File Tree 7.2
Same name and namespace in other branches
- 7 tft.module \tft_node_prepare()
Implements hook_node_prepare().
Related topics
File
- ./
tft.module, line 188 - Hook implementations and module logic for TFT.
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'];
}
}
}