You are here

function theme_brightcove_field_browse_button in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.2 brightcove_field/theme.inc \theme_brightcove_field_browse_button()
  2. 7.3 brightcove_field/theme.inc \theme_brightcove_field_browse_button()
  3. 7.4 brightcove_field/theme.inc \theme_brightcove_field_browse_button()
  4. 7.5 brightcove_field/theme.inc \theme_brightcove_field_browse_button()
  5. 7.6 theme.inc \theme_brightcove_field_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_field_browse_button'
brightcove_theme in ./brightcove.module
Implements of hook_theme().

File

./theme.inc, line 16
Theme funciton for the module.

Code

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