<?php

require_once($CFG->dirroot.'/lib/formslib.php');

class blog_preferences_form extends moodleform {

    // Define the form
    function definition() {
        global $USER, $CFG, $COURSE;
        
        $mform =& $this->_form;
        $mform->addElement('hidden', 'courseid', $COURSE->id);

        $size = array(1 => '1',2 => '2',3 => '3',4 => '4',5 => '5',6 => '6',7 => '7',8 => '8',9 => '9',10 => '10');
        
        $mform->addElement('select', 'pagesize', get_string('pagesize', 'blog'), $size);

        $this->add_action_buttons();
    }
}
?>
