You are here

function theme_brightcove_field_browse_button in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.7 theme.inc \theme_brightcove_field_browse_button()
  2. 7.2 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_field_theme in brightcove_field/brightcove_field.module
Implementation of hook_theme().

File

brightcove_field/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_field') . '/js/brightcove.js');
  $element['#button_type'] = 'button';

  // TODO: review after the field part is stable
  $button = theme('button', array(
    'element' => $element,
  ));
  return str_ireplace('type="submit"', 'type="button"', $button);
}