get_string('mode_course', 'block_hawthorn'));
$groups = groups_get_all_groups($COURSE->id);
if($groups)
{
$modeoptions['group'] = get_string('mode_group', 'block_hawthorn');
$modeoptions['both'] = get_string('mode_both', 'block_hawthorn');
}
$currentmode = isset($this->config->mode)
? $this->config->mode : HAWTHORN_DEFAULTMODE;
?>
: |
|
id);
if($groupings)
{
$groupingoptions = array( 0 => get_string('anygrouping', 'group'));
foreach($groupings as $grouping)
{
$groupingoptions[$grouping->id] = $grouping->name;
}
$currentgrouping = isset($this->config->grouping)
? $this->config->grouping : 0;
?>
: |
|
get_string('nomessages', 'block_hawthorn'),
1 => get_string('one_message', 'block_hawthorn') );
foreach(array(2,3,4,5,6,7) as $number)
{
$messageoptions[$number] = get_string('n_messages', 'block_hawthorn', $number);
}
$currentmessages = isset($this->config->maxmessages)
? $this->config->maxmessages : HAWTHORN_DEFAULTMESSAGES;
$nameoptions = array ( 0 => get_string('nonames', 'block_hawthorn') );
foreach(array(3,5,10) as $number)
{
$nameoptions[$number] = get_string('n_names', 'block_hawthorn', $number);
}
$currentnames = isset($this->config->maxnames)
? $this->config->maxnames : HAWTHORN_DEFAULTNAMES;
?>
: |
|
: |
|
|