You are here

function media_media_mover_media_register in D7 Media 6

Implementation of hook_media_register

Return value

array

File

media_media_mover/media_media_mover.module, line 16
This module provides integration for Media Mover module with the Media module

Code

function media_media_mover_media_register() {
  $registration = array();
  $registration['media_mover_all'] = array(
    'name' => 'All Media Mover files',
    'description' => t('Provides all Media Mover files'),
    'uri' => 'file',
    'kind' => 'resource',
    'callbacks' => array(
      'resource' => 'media_media_mover_all_files',
    ),
    'fields' => array(
      'attachments',
      'filefield',
    ),
  );
  $registration['media_mover_user'] = array(
    // human readable name
    'name' => 'My Media Mover files',
    'description' => 'Provides Media Mover generated files for this user',
    'uri' => 'file',
    'kind' => 'resource',
    'description' => t('Integrate Users Media Mover files'),
    'callbacks' => array(
      'resource' => 'media_media_mover_user_files',
    ),
    'fields' => array(
      'attachments',
      'filefield',
    ),
  );
  return $registration;
}