You are here

function biblio_admin_io_mapper_page in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \biblio_admin_io_mapper_page()
  2. 7.2 includes/biblio.admin.inc \biblio_admin_io_mapper_page()

Outputs a page containing "edit" links for each enabled import/export module.

Each link goes to a page allowing the user to modifiy the field mapping for each of the import/export formats.

1 string reference to 'biblio_admin_io_mapper_page'
biblio_menu in ./biblio.module
Implements hook_menu().

File

includes/biblio.admin.inc, line 1109
biblio.admin.inc

Code

function biblio_admin_io_mapper_page() {
  $formats = module_invoke_all('biblio_mapper_options');
  asort($formats);
  foreach ($formats as $key => $value) {
    $rows[] = array(
      $value['title'],
      l(t('edit'), 'admin/config/content/biblio/iomap/edit/' . $key),
    );
  }
  if (count($rows) == 0) {
    drupal_set_message(t('There are no import/export modules enabled. Please go to the !l page and enable at least one.', array(
      '!l' => l(t('modules'), "admin/modules"),
    )));
  }
  $header = array(
    t('Format'),
    t('Action'),
  );
  return theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
}