Permalink
Browse files

MDL-42842 Change availability fields to date_time_selector

  • Loading branch information...
Daniel Neis Araujo authored and danielneis committed Nov 12, 2013
1 parent ec4c816 commit 644b0d8691e0a89c5e6c1b272cdf79015979e75f
Showing with 9 additions and 5 deletions.
  1. +9 −5 mod/data/mod_form.php
View
@@ -12,7 +12,7 @@ function definition() {
$mform =& $this->_form;
-//-------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------
$mform->addElement('header', 'general', get_string('general', 'form'));
$mform->addElement('text', 'name', get_string('name'), array('size'=>'64'));
@@ -49,13 +49,17 @@ function definition() {
// ----------------------------------------------------------------------
$mform->addElement('header', 'availibilityhdr', get_string('availability'));
- $mform->addElement('date_selector', 'timeavailablefrom', get_string('availablefromdate', 'data'), array('optional'=>true));
+ $mform->addElement('date_time_selector', 'timeavailablefrom', get_string('availablefromdate', 'data'),
+ array('optional' => true));
- $mform->addElement('date_selector', 'timeavailableto', get_string('availabletodate', 'data'), array('optional'=>true));
+ $mform->addElement('date_time_selector', 'timeavailableto', get_string('availabletodate', 'data'),
+ array('optional' => true));
- $mform->addElement('date_selector', 'timeviewfrom', get_string('viewfromdate', 'data'), array('optional'=>true));
+ $mform->addElement('date_time_selector', 'timeviewfrom', get_string('viewfromdate', 'data'),
+ array('optional' => true));
- $mform->addElement('date_selector', 'timeviewto', get_string('viewtodate', 'data'), array('optional'=>true));
+ $mform->addElement('date_time_selector', 'timeviewto', get_string('viewtodate', 'data'),
+ array('optional' => true));
// ----------------------------------------------------------------------
if ($CFG->enablerssfeeds && $CFG->data_enablerssfeeds) {

0 comments on commit 644b0d8

Please sign in to comment.