activate.php 360 B

1234567891011
  1. <?php
  2. /**
  3. * Prompt the user to add categories after activating
  4. */
  5. //categories_admin_notice_no_categories
  6. $site = get_config('site');
  7. if (!$site->categories) {
  8. $message = elgg_echo('categories:on_activate_reminder', array(elgg_normalize_url('admin/plugin_settings/categories')));
  9. elgg_add_admin_notice('categories_admin_notice_no_categories', $message);
  10. }