Want to make little thing disappear

So I have now with my friend some time tried to find out and crawl whole core + hypeWall plugin. When users post to their wall, there is option to choose from Public / Friends / Private. We haven't found where this "menu" is located. We would like to make that only admins can post (and also see) Public option and other users can see and post only to Friends / Private but they will see also those public posts by admins. Is it somewhere else that hypeWall ?

  • Extend the access input's view:

    $access_id = elgg_extract('access_id', $vars, ACCESS_DEFAULT);
    if (!elgg_is_admin_logged_in()) {
        $access_options[ACCESS_LOGGED_IN] = elgg_echo('LOGGED_IN');
        $user_guid = elgg_get_logged_in_user_guid();
        $dbprefix = elgg_get_config('dbprefix');
        $query = "SELECT * FROM {$dbprefix}access_collections
                 WHERE owner_guid = {$user_guid}
                 AND site_guid = 1
                 ORDER BY name ASC";
        $collections = get_data_row($query);
        foreach($collections as $collection){
            $access_options[$collection->id] = $collection->name;
        $field = [
            '#type' => 'access',
            'name' => 'access_id',
            'value' => $access_id,
            'options_values' => $access_options,
            'entity_type' => 'object',
            'entity_subtype' => 'hjwall',
            '#label' => elgg_echo('access'),
        echo elgg_view_field($field);
Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking