function _vsd_if_examples_import_widget_files_directory in Views Slideshow: Dynamic Display Block 6.2
Determine the widget's files directory
Parameters
$field CCK field:
Return value
files directory path.
1 call to _vsd_if_examples_import_widget_files_directory()
- vsd_if_examples_install in vsd_if_examples/
vsd_if_examples.install - Implementation of hook_install().
File
- vsd_if_examples/
includes/ vsd_if_examples.nodedata.inc, line 78 - data import for vsd_if_examples module
Code
function _vsd_if_examples_import_widget_files_directory($field) {
$widget_file_path = $field['widget']['file_path'];
if (module_exists('token')) {
global $user;
$widget_file_path = token_replace($widget_file_path, 'user', $user);
}
return file_directory_path() . '/' . $widget_file_path;
}