function _visual_select_file_user_has_access in Visual select file 7
Check if this user has access to the VSF view.
2 calls to _visual_select_file_user_has_access()
- visual_select_file_pre_render_filefield_sources_element in ./
visual_select_file.module - Add field instance settings for other parts of the machine to pick up.
- vsf_wysiwyg_pre_render_wysiwyg_element in submodules/
vsf_wysiwyg/ vsf_wysiwyg.module - Add field instance settings for other parts of the machine to pick up.
File
- ./
visual_select_file.module, line 275
Code
function _visual_select_file_user_has_access($account = NULL) {
global $user;
$account or $account = $user;
$access =& drupal_static(__FUNCTION__ . ':' . $account->uid);
if ($access === NULL) {
$menu_item = menu_get_item('admin/visual_select_file');
$access = (bool) @$menu_item['access'];
}
return $access;
}