function media_media_mover_all_files in D7 Media 6
Retrives all media mover files for reuse
Parameters
unknown_type $node_type:
unknown_type $field:
unknown_type $uid:
Return value
unknown
1 string reference to 'media_media_mover_all_files'
- media_media_mover_media_register in media_media_mover/
media_media_mover.module - Implementation of hook_media_register
File
- media_media_mover/
media_media_mover.module, line 69 - This module provides integration for Media Mover module with the Media module
Code
function media_media_mover_all_files($node_type, $field, $uid) {
$files = array();
$results = db_query('SELECT complete_file FROM {media_mover_files} ');
while ($file = db_fetch_array($results)) {
$files[] = array(
'uri' => $file['complete_file'],
'filename' => basename($file['complete_file']),
'meta' => '',
);
}
return array(
t('Media Mover') => array(
t('All Media Mover files') => media_resource_display_user_files_form($files, t('All Media Mover files')),
),
);
}