Projet

Général

Profil

Paste
Télécharger (706 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / media / modules / media_internet / media_internet.media.inc @ e4215af7

1
<?php
2

    
3
/**
4
 * @file
5
 * Media module integration for the Media internet module.
6
 */
7

    
8
/**
9
 * Implements hook_media_browser_plugin_info().
10
 */
11
function media_internet_media_browser_plugin_info() {
12
  $info['media_internet'] = array(
13
    'title' => t('Web'),
14
    'class' => 'MediaBrowserInternet',
15
  );
16

    
17
  return $info;
18
}
19

    
20
/**
21
 * Implements hook_media_internet_providers().
22
 *
23
 * Provides a very basic handler which copies files from remote sources to the
24
 * local files directory.
25
 */
26
function media_internet_media_internet_providers() {
27
  return array(
28
    'MediaInternetFileHandler' => array(
29
      'title' => 'Files',
30
      'hidden' => TRUE,
31
      // Make it go last.
32
      'weight' => 10000,
33
    ),
34
  );
35
}