Index: browscap.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/browscap/browscap.module,v retrieving revision 1.6.2.3.2.11 diff -u -r1.6.2.3.2.11 browscap.module --- browscap.module 30 Sep 2009 17:16:40 -0000 1.6.2.3.2.11 +++ browscap.module 4 Oct 2009 09:36:12 -0000 @@ -433,3 +433,30 @@ $output = theme('table', $headers, $rows); return $output; } + +/** + * Implementation of hook_autoadmin_schema(). + * + * See the Auto Admin module: http://drupal.org/project/autoadmin. + */ +function browscap_autoadmin_schema() { + $schema['browscap'] = array( + // Title shown in menu. Will be translated. + 'title' => t('User Agents'), + 'title_plural' => t('User Agents'), + // Must repeat description here, because its against the drupal way + // to use the t() function in .install files. + 'description' => t('All available user agents.'), + // Url path where form is accessed. + 'path' => 'admin/settings/browscap_admin', + // Which field in table to use as alias. + 'alias' => 'useragent', + 'fields' => array( + 'useragent' => array ( + 'title' => t('User Agent'), + 'title_plural' => t('User Agents'), + ), + ), + ); + return $schema; +}