You are here

function theme_brightcove_cck_browse_button in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/theme.inc \theme_brightcove_cck_browse_button()

Theme callback for a Brightcove browse button. Currently it's just a thin wrapper around the theme_button() function which only returns a button of type submit. The themed representation is just adapted to achieve an input html tag of the type button.

See also

nodereference_explorer.module

1 string reference to 'theme_brightcove_cck_browse_button'
brightcove_cck_theme in brightcove_cck/brightcove_cck.module
Implementation of hook_theme().

File

brightcove_cck/theme.inc, line 12

Code

function theme_brightcove_cck_browse_button($element) {
  drupal_add_js(drupal_get_path('module', 'brightcove_cck') . '/js/browse.js');
  $element['#button_type'] = 'button';
  $button = theme('button', $element);
  return str_ireplace('type="submit"', 'type="button"', $button);
}