diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-05-19 07:46:47 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-05-19 10:07:11 +0100 |
| commit | 87503df0218870d3aeda5a2ab488aad0cd154036 (patch) | |
| tree | 072293e4b8937f9f66cc09b00c600cb67ca71d48 /app/Module.php | |
| parent | 0410b05bb508cb5db60aaffed0fc263c0dd7264d (diff) | |
| download | webtrees-87503df0218870d3aeda5a2ab488aad0cd154036.tar.gz webtrees-87503df0218870d3aeda5a2ab488aad0cd154036.tar.bz2 webtrees-87503df0218870d3aeda5a2ab488aad0cd154036.zip | |
Fix #413 - Version and link for custom modules
Diffstat (limited to 'app/Module.php')
| -rw-r--r-- | app/Module.php | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/app/Module.php b/app/Module.php index 22a17f81b4..7505bb9352 100644 --- a/app/Module.php +++ b/app/Module.php @@ -29,6 +29,88 @@ use Fisharebest\Webtrees\Module\ModuleThemeInterface; */ class Module { /** + * Get a list of all core modules. We need to identify + * third-party during upgrade and on the module admin page. + * + * @return string[] + */ + public static function getCoreModuleNames() { + return array( + 'GEDFact_assistant', + 'ahnentafel_report', + 'ancestors_chart', + 'batch_update', + 'bdm_report', + 'birth_report', + 'cemetery_report', + 'change_report', + 'charts', + 'ckeditor', + 'clippings', + 'compact_tree_chart', + 'death_report', + 'descendancy', + 'descendancy_chart', + 'descendancy_report', + 'extra_info', + 'fact_sources', + 'families', + 'family_book_chart', + 'family_group_report', + 'family_nav', + 'fan_chart', + 'faq', + 'gedcom_block', + 'gedcom_favorites', + 'gedcom_news', + 'gedcom_stats', + 'googlemap', + 'hourglass_chart', + 'html', + 'individual_ext_report', + 'individual_report', + 'individuals', + 'lifespans_chart', + 'lightbox', + 'logged_in', + 'login_block', + 'marriage_report', + 'media', + 'missing_facts_report', + 'notes', + 'occupation_report', + 'page_menu', + 'pedigree_chart', + 'pedigree_report', + 'personal_facts', + 'random_media', + 'recent_changes', + 'relationships_chart', + 'relative_ext_report', + 'relatives', + 'review_changes', + 'sitemap', + 'sources_tab', + 'statistics_chart', + 'stories', + 'theme_select', + 'timeline_chart', + 'todays_events', + 'todo', + 'top10_givnnames', + 'top10_pageviews', + 'top10_surnames', + 'tree', + 'upcoming_events', + 'user_blog', + 'user_favorites', + 'user_messages', + 'user_welcome', + 'yahrzeit', + ); + } + + /** * Get a list of all active (enabled) modules. * * @return AbstractModule[] |
