MDL-5583 mod_data: Add required fields
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Wed, 11 Jul 2012 05:01:30 +0000 (13:01 +0800)
committerJohn Okely <john@moodle.com>
Fri, 6 Mar 2015 01:55:49 +0000 (09:55 +0800)
commitb89cca197e4d6447d12fdb7d3fa928edc8a0c837
treeb6855a60e22958f09e8ddd9a27636bd91c182071
parent9776f3dcdb3b21b622ea8a650fe2ef6b545f7fd1
MDL-5583 mod_data: Add required fields

This is implemented for most fields but not all. The reason is that there are
some fields for which this does not make sense because no entry is a valid entry.

The supported fields are:
    checkbox
    file
    latlong
    menu
    number
    picture
    radio
    text
    textarea
    url

The unsupported fields are:
    date
    multimenu
30 files changed:
mod/data/backup/moodle2/backup_data_stepslib.php
mod/data/db/install.xml
mod/data/db/upgrade.php
mod/data/edit.php
mod/data/field.php
mod/data/field/checkbox/field.class.php
mod/data/field/checkbox/mod.html
mod/data/field/date/field.class.php
mod/data/field/file/field.class.php
mod/data/field/file/mod.html
mod/data/field/latlong/field.class.php
mod/data/field/latlong/mod.html
mod/data/field/menu/field.class.php
mod/data/field/menu/mod.html
mod/data/field/multimenu/field.class.php
mod/data/field/number/mod.html
mod/data/field/picture/field.class.php
mod/data/field/picture/mod.html
mod/data/field/radiobutton/field.class.php
mod/data/field/radiobutton/mod.html
mod/data/field/text/mod.html
mod/data/field/textarea/field.class.php
mod/data/field/textarea/mod.html
mod/data/field/url/field.class.php
mod/data/field/url/mod.html
mod/data/lang/en/data.php
mod/data/lib.php
mod/data/styles.css
mod/data/tests/behat/required_entries.feature [new file with mode: 0644]
mod/data/version.php