Issue Details (XML | Word | Printable)

Key: MDL-20576
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Nobody
Reporter: Nadav Kavalerchik
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

move event from course level to site-wide level

Created: 16/Oct/09 05:42 AM   Updated: 16/Oct/09 05:42 AM
Component/s: Calendar, Events API
Affects Version/s: 1.9
Fix Version/s: None

Participants: Nadav Kavalerchik and Nobody
Security Level: None
Difficulty: Easy
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
enable administrators to move an event from a course level to a site-wide level

moodle/calendar/event.php (line 167) add :

'courseid = '.$form->courseid.','.

moodle/calendar/event_edit.php after line 82 add:

<?php if ($form->courseid != 1) { ?>
<tr valign="top">
<td align="right">
<?php print_string('changetositewide', 'calendar'); ?>:
</td>
<td>
<?php
$courses[$form->courseid] = get_string('stayascourseevent', 'calendar');
$courses[1] = get_string('makesitewide', 'calendar');

if ($form->courseid != 1) { choose_from_menu ($courses, "courseid", $form->courseid, "", "", ""); }
?>
</td>
</tr>
<?php } else { ?> <input type="hidden" name="courseid" value="<?php echo $form->courseid; ?>" > <?php } ?>

and remark line 109:

<!-input type="hidden" name="courseid" value="<?php echo $form>courseid; ?>" /-->

add the following strings to calendar.php file in your english and local language folders:

$string['changetositewide'] = 'convert this event to site-wide?';
$string['stayascourseevent'] = 'no. keep it at course level';
$string['makesitewide'] = 'yes. make it site-wide';

enjoy



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.