function node_import_access in Node import 6
Check access to an import task. Used in hook_menu().
Parameters
$task: Array.
Return value
TRUE if the current user can access the task.
Related topics
1 string reference to 'node_import_access'
- node_import_menu in ./
node_import.module - Implementation of hook_menu().
File
- ./
node_import.module, line 166 - Let users import content from CSV or TSV file.
Code
function node_import_access($task) {
global $user;
if (user_access('administer imports') || $task['uid'] == $user->uid) {
return TRUE;
}
return FALSE;
}