au_group_notice_position; switch ($position) { case 'top': elgg_extend_view('page/elements/body', 'au_group_notices/au_group_notices_show', 499); break; case 'bottom': elgg_extend_view('page/elements/body', 'au_group_notices/au_group_notices_show', 501); break; case 'sidebottom': elgg_extend_view('page/elements/sidebar', 'au_group_notices/au_group_notices_show', 600); break; case 'sidetop': elgg_extend_view('group/default', 'au_group_notices/au_group_notices_show', 100); break; default: // do nothing - if position not set, no settings provided break; } }