You are here

function scald_admin_relationships in Scald: Media Management made easy 6

The Scald Admin page for Scald Atom Relationships

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

File

./scald.admin.inc, line 501

Code

function scald_admin_relationships() {
  $content = t('
    <h3>Scald Atom Relationships</h3>

    <p>Scald Atom Relationships define a way in which two Atoms can be related.  What is done with this information is dependant on the nature of the relationship.</p>
    <ol>
  ');
  $relationships_results = db_query("\n    SELECT\n      *\n    FROM\n      {scald_relationships}\n  ");
  while ($relationship_raw = db_fetch_array($relationships_results)) {
    $content .= '
      <li>
        <strong>A ' . $relationship_raw['title'] . ' B / B ' . $relationship_raw['title_reverse'] . ' A</strong>
        <ul>
          <li><em>' . $relationship_raw['description'] . '</em></li>
          <li>Provided by <code>' . $relationship_raw['provider'] . '.module</code></li>
        </ul>
      </li>
    ';
  }
  $content .= '</ol>';
  return $content;
}