diff -urN api/api.css /srv/www/htdocs/6/sites/all/modules/api/api.css
--- api/api.css 2009-01-28 22:05:03.000000000 +0100
+++ /srv/www/htdocs/6/sites/all/modules/api/api.css 2009-08-05 02:27:21.000000000 +0200
@@ -104,3 +104,10 @@
#api-search-form #autocomplete {
width: 250px !important;
}
+
+#api-warning {
+ margin: 1em;
+ padding: 1em;
+ border: 1px solid;
+ font-size: 0.9em;
+}
diff -urN api/api.module /srv/www/htdocs/6/sites/all/modules/api/api.module
--- api/api.module 2009-08-01 08:59:04.000000000 +0200
+++ /srv/www/htdocs/6/sites/all/modules/api/api.module 2009-08-05 02:30:34.000000000 +0200
@@ -560,6 +560,12 @@
),
'template' => 'templates/api-group-page'
),
+ 'api_default_page' => array(
+ 'arguments' => array(
+ 'branch' => NULL,
+ ),
+ 'template' => 'templates/api-default-page'
+ ),
);
}
@@ -965,7 +971,7 @@
return api_link_documentation($branch->documentation, $branch_name);
}
else {
- return t('A main page for this branch has not been indexed. A documentation comment with @mainpage {title} needs to exist, or has not been indexed yet. For Drupal core, this is available in the developer documentation in the contributions repository.');
+ return theme('api_default_page', $branch_name);
}
}
diff -urN api/templates/api-default-page.tpl.php /srv/www/htdocs/6/sites/all/modules/api/templates/api-default-page.tpl.php
--- api/templates/api-default-page.tpl.php 1970-01-01 01:00:00.000000000 +0100
+++ /srv/www/htdocs/6/sites/all/modules/api/templates/api-default-page.tpl.php 2009-08-05 02:28:39.000000000 +0200
@@ -0,0 +1,13 @@
+
+
+@mainpage {title} needs to exist, or has not been indexed yet. For Drupal core, this is available in the developer documentation in the contributions repository.') ?> +