public function render_digest_options($forum, $value) {
        $options = forum_get_user_digest_options();
        $editable = new \core\output\inplace_editable(
            'mod_forum',
            'digestoptions',
            $forum->id,
            true,
            $options[$value],
            $value
        );

        $editable->set_type_select($options);

        return $editable;
    }
public function render_digest_options($forum, $value) {
        $options = forum_get_user_digest_options();
        $editable = new \core\output\inplace_editable(
            'mod_forum',
            'digestoptions',
            $forum->id,
            true,
            $options[$value],
            $value
        );

        $editable->set_type_select($options);

        return $editable;
    }
public function render_digest_options ( $ forum , $ value ) { $ options = forum_get_user_digest_options ( ) ; $ editable = new \ core \ output \ inplace_editable ( 'mod_forum' , 'digestoptions' , $ forum -> id , true , $ options [ $ value ] , $ value ) ; $ editable -> set_type_select ( $ options ) ; return $ editable ; }
Create the inplace_editable used to select forum digest options.

@param   stdClass    $forum  The forum to create the editable for.
@param   int         $value  The current value for this user
@return  inplace_editable
Create the inplace_editable used to select forum digest options .