You are here

function media_upload_resource_add_file in D7 Media 6

Implementation of registration media_upload_resource_add_file

Parameters

string $node_type: drupal node type

string $field: field name that is being overridden

int $uid: user id

1 string reference to 'media_upload_resource_add_file'
media_upload_media_register in media_upload/media_upload.module
Implementation of hook_media_register

File

media_upload/media_upload.module, line 151
This module provides integration for Drupal's upload module with the Media module

Code

function media_upload_resource_add_file($node_type, $field, $uid) {
  return array(
    t('Add files') => array(
      t('New file') => media_resource_display_upload_form(),
    ),
  );
}