Resources/contao/classes/C4GMembergroupSync.php
public function generate()
    {
        if (\Input::get('act') != '') {
            $this->action = \Input::get('act');
        } else {
            $this->action = 'init';
        }

        switch( $this->action )
        {
            case 'exec':
                $this->syncMemberGroupBindings();
                break;
            case 'back':
                \Controller::redirect( 'contao/main.php?do=c4g_core' );
            case 'init':
            default:
                $this->output[] = $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MEMBERGROUPSYNC']['INTRO'];
                $this->output[] = '<span class="c4g_warning">' . $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MEMBERGROUPSYNC']['WARNING'] . '</span>';

                $this->buttons[] = array(
                    action  => 'exec',
                    label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BTN']['SYNCBINDINGS']
                );
                break;
        }
        $this->buttons[] = array(
            action  => 'back',
            label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BACK']
        );

        return parent::generate();
    }
public function generate()
    {
        if (\Input::get('act') != '') {
            $this->action = \Input::get('act');
        } else {
            $this->action = 'init';
        }

        switch( $this->action )
        {
            case 'exec':
                $this->syncMemberGroupBindings();
                break;
            case 'back':
                \Controller::redirect( 'contao/main.php?do=c4g_core' );
            case 'init':
            default:
                $this->output[] = $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MEMBERGROUPSYNC']['INTRO'];
                $this->output[] = '<span class="c4g_warning">' . $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MEMBERGROUPSYNC']['WARNING'] . '</span>';

                $this->buttons[] = array(
                    action  => 'exec',
                    label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BTN']['SYNCBINDINGS']
                );
                break;
        }
        $this->buttons[] = array(
            action  => 'back',
            label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BACK']
        );

        return parent::generate();
    }
Generate the module
@return string