content_subscriptions.php 577 B

12345678910111213141516171819202122
  1. <?php
  2. // Upgrade also possible hidden entities. This feature get run
  3. // by an administrator so there's no need to ignore access.
  4. $access_status = access_get_show_hidden_status();
  5. access_show_hidden_entities(true);
  6. $options = [
  7. 'type' => 'user',
  8. 'relationship' => CONTENT_SUBSCRIPTIONS_SUBSCRIPTION,
  9. 'inverse_relationship' => true,
  10. 'count' => true,
  11. ];
  12. $count = elgg_get_entities_from_relationship($options);
  13. echo elgg_view('admin/upgrades/view', [
  14. 'count' => $count,
  15. 'action' => 'action/content_subscriptions/upgrade',
  16. ]);
  17. access_show_hidden_entities($access_status);