You are here

function scald_admin_transcoders in Scald: Media Management made easy 6

The Scald Admin page for Scald Transcoders

The Transcoders and their descriptions are simply listed; no configuration changes can be made from this page.

1 string reference to 'scald_admin_transcoders'
scald_menu in ./scald.module
Implementation of hook_menu().

File

./scald.admin.inc, line 459

Code

function scald_admin_transcoders() {
  $content = t('
    <h3>Scald Transcoders</h3>
    <br>
    <p>Scald Transcoders take the files associated with Atoms of a particular Type and transcode them into a file format which is appropriate for output.  Any configuration for the Transcoders should be completed on the settings page for the Providing module.</p>
    <ol>
      <li>
        <strong>Passthrough</strong>
        <ul>
          <li><em>The Passthrough Transcoder simply makes the source file available to the rendering stack in an unmodified form.</em></li>
          <li>Provided by <code>scald.module</code></li>
        </ul>
      </li>
  ');
  $transcoders_results = db_query("\n    SELECT\n      *\n    FROM\n      {scald_transcoders}\n  ");
  while ($transcoder_raw = db_fetch_array($transcoders_results)) {
    $content .= '
      <li>
        <strong>' . $transcoder_raw['title'] . '</strong>
        <ul>
          <li><em>' . $transcoder_raw['description'] . '</em></li>
          <li>Provided by <code>' . $transcoder_raw['provider'] . '.module</code></li>
        </ul>
      </li>
    ';
  }
  $content .= '</ol>';
  return $content;
}