function tft_get_file_setting in Taxonomy File Tree 7.2
Same name and namespace in other branches
- 7 tft.module \tft_get_file_setting()
Get the settings for the node type used as the 'file'.
This function is kept for historical reasons. These settings cannot be changed anymore.
Return value
array An array with a 'type' key for the node type and a 'field' key for the file field.
Related topics
9 calls to tft_get_file_setting()
- tft_form_alter in ./
tft.module - Implements hook_form_alter()
- tft_get_add_content_links in ./
tft.module - Render the add file and add folder links.
- tft_get_content in ./
tft.module - Get the folder content and return it in an array form for the theme_table call.
- tft_l in ./
tft.module - Format a folder or file link.
- tft_multiple_upload_tft_get_add_content_links_alter in modules/
tft_multiple_upload/ tft_multiple_upload.module - Implements tft_get_add_content_links_alter().
File
- ./
tft.module, line 998 - Hook implementations and module logic for TFT.
Code
function tft_get_file_setting() {
$temp = explode('-', variable_get('tft_content_type', 'tft_file-tft_file'));
return array(
'type' => $temp[0],
'field' => $temp[1],
);
}