function hook_pmpapi_pull_make_local_files in Public Media Platform API Integration 7
Act on test to determine if file-based profile should be copied locally.
Parameters
string $profile: The name of a PMP profile
1 function implements hook_pmpapi_pull_make_local_files()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- pmpapi_remote_files_pmpapi_pull_make_local_files in pmpapi_remote_files/
pmpapi_remote_files.module - Implements hook_pmpapi_pull_make_local_files().
1 invocation of hook_pmpapi_pull_make_local_files()
- pmpapi_pull_make_local_files in pmpapi_pull/
pmpapi_pull.module - Implements hook_pmpapi_pull_make_local_files().
File
- pmpapi_pull/
pmpapi_pull.api.php, line 14 - Hooks provided by the PMPAPI pull module.
Code
function hook_pmpapi_pull_make_local_files($profile) {
$remote_profiles = array(
'audio',
'video',
);
if (in_array($profile, $remote_profiles)) {
// NB: If you want to make files remote, MAKE SURE that you return an
// explicit FALSE, (rather than just falling out of the function)
return FALSE;
}
// The default return will likely be TRUE
return TRUE;
}