diff --git a/libraries.admin.inc b/libraries.admin.inc
index 06311fd..61371d9 100644
--- a/libraries.admin.inc
+++ b/libraries.admin.inc
@@ -23,6 +23,7 @@ function libraries_admin_overview(array $form, array &$form_state) {
// Only show status for libraries with an error.
$header_installed = array(t('Name'), t('Version'), t('Provider'), t('Links'));
$header_error = array(t('Name'), t('Status'), t('Version'), t('Provider'), t('Links'));
+ // For unregistered libraries the only information we can show is the path.
$header_unregistered = array(t('Name'), t('Path'));
$rows_installed = array();
@@ -76,25 +77,21 @@ function libraries_admin_overview(array $form, array &$form_state) {
}
// Build table of registered libraries with installed status.
- $form['libraries']['installed_title'] = array(
- '#markup' => '
' . t('Active libraries') . '
',
- );
$form['libraries']['installed'] = array(
'#theme' => 'table',
'#header' => $header_installed,
'#rows' => $rows_installed,
- '#empty' => t('There are currently no active libraries.'),
+ '#empty' => t('There are currently no libraries that are registered and installed.'),
+ '#prefix' => '' . t('Installed libraries') . '
' . t('These libraries are registered and installed correctly.') . '
',
);
// Build table of registered libraries with error status.
- $form['libraries']['error_title'] = array(
- '#markup' => '
' . t('Inactive libraries') . '
' . t('A list of libraries that are not found, not installed correctly, or not required by any modules. Action is only necessary if a module is not functioning as expected.') . '
',
- );
$form['libraries']['error'] = array(
'#theme' => 'table',
'#header' => $header_error,
'#rows' => $rows_error,
- '#empty' => t('There are currently no inactive libraries.'),
+ '#empty' => t('There are currently no libraries that are registered but not installed.'),
+ '#prefix' => '' . t('Uninstalled libraries') . '
' . t('These libraries are registered but not installed. They may not need to be installed in case a module or theme provides optional integration with a library.') . '
',
);
// Build table of unregistered libraries.
@@ -106,14 +103,13 @@ function libraries_admin_overview(array $form, array &$form_state) {
),
);
}
- $form['libraries']['unregistered_title'] = array(
- '#markup' => '
' . t('Other libraries') . '
' . t('Additional libraries found in the libraries directory. Some are standalone libraries not required by any module, while others are used by modules that do not provide additional information to Libraries API.') . '
',
- );
$form['libraries']['unregistered'] = array(
'#theme' => 'table',
'#header' => $header_unregistered,
'#rows' => $rows_unregistered,
+ // Do not show the table at all, if there are no unregistered libraries.
'#access' => (bool) $libraries_unregistered,
+ '#prefix' => '' . t('Unregistered libraries') . '
' . t('These libraries were found in the filesystem but there is no metadata about them.') . '
',
);
return $form;