You are here

function theme_media_browser_pane in D7 Media 6

Same name and namespace in other branches
  1. 7 includes/media.theme.inc \theme_media_browser_pane()

Display a browser pane.

Parameters

array $form: The form element.

Return value

string

1 theme call to theme_media_browser_pane()
media_build_browser_form in ./media.module
Build data for the media browser display.

File

./media_theme.inc, line 42
Media Theming

Code

function theme_media_browser_pane($form) {
  $output = array();

  // render the drawers
  $output[] = '<div' . drupal_attributes($form['#attributes']) . '>';

  // render the drawer list
  $output[] = '  <div class="browser drawers">';
  $output[] = drupal_render_form(null, $form['drawers']);
  $output[] = ' </div>';

  // render the drawer displays
  $output[] = drupal_render_form(null, $form);
  $output[] = '</div>';
  return implode("\n", $output);
}