You are here

function theme_swftools_wpaudio_accessible in SWF Tools 6.3

Returns markup to enable accessible controls for the WordPress audio player.

Parameters

string $id: id of the player to be made accessible.

int $visible: Whether the controls should be visible. Options are one the following constants:

Return value

string Mark up to place accessible controls on the page.

Related topics

1 theme call to theme_swftools_wpaudio_accessible()
swftools_wpaudio_swftools_preprocess_wpaudio in wpaudio/swftools_wpaudio.module
Implementation of hook_swftools_preprocess_[player]().

File

wpaudio/swftools_wpaudio.module, line 282
Enables SWF Tools support for the WordPress Audio player.

Code

function theme_swftools_wpaudio_accessible($id, $visible) {
  $actions = array(
    'open' => t('Play'),
    'close' => t('Stop'),
  );
  return theme('swftools_accessible_controls', 'wpaudio', $id, $actions, $visible);
}