Skip to content
Snippets Groups Projects
Commit 17cb50a5 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #2166855: Give "no content" message when no PDFs on admin/structure/fillpdf.

parent 7a591c18
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,9 @@ function fillpdf_forms_admin($form, &$form_state) { ...@@ -123,6 +123,9 @@ function fillpdf_forms_admin($form, &$form_state) {
); );
$rows[] = $row; $rows[] = $row;
} }
if (!$rows) {
$rows[] = array(array('data' => t('No content available.'), 'colspan' => 7));
}
$form['existing_forms'] = array( $form['existing_forms'] = array(
'#markup' => theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'fillpdf'))), '#markup' => theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'fillpdf'))),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment