You are here

BynderMediaUpload.inc in Bynder 7

bynder/includes/BynderMediaBrowser.inc

Definition of BynderMediaBrowser.

File

includes/BynderMediaUpload.inc
View source
<?php

/**
 * @file bynder/includes/BynderMediaBrowser.inc
 *
 * Definition of BynderMediaBrowser.
 */

/**
 * Browser plugin for Bynder files.
 */
class BynderMediaUpload extends MediaBrowserPlugin {

  /**
   * Implements MediaBrowserPluginInterface::access().
   */
  public function access($account = null) {
    return user_access('administer media bynder');
  }

  /**
   * Implements MediaBrowserPlugin::view().
   */
  public function view() {
    $build = array();
    $build['form'] = drupal_get_form('bynder_upload', $this->params);
    return $build;
  }

}

Classes

Namesort descending Description
BynderMediaUpload Browser plugin for Bynder files.