Getting disabled entity

Can some one help me find the code for getting all disabled or enabled=no entities in entities database.

  • Access_id is not the same as enabled/disabled (hidden) status. Without using

    access_show_hidden_entities(true);

    even admins don't get disabled entities by default (whereas they get entities regardless of access_id for sure).

    I also did test the elgg_get_entities_from_metadata() and elgg_get_entities() usage logged in as admin and I did not get disabled entities.

    If you have so far fiddled with the access_id the results are very likely not as you expected. But the results are very likely as they are supposed to be.