framework/RedKiteCms/Action/Block/AddBlockAction.php
public function execute(array $options, $username)
    {
        $data = $options["data"];
        $addOptions = array(
            'page' => $data['page'],
            'language' => $data['language'],
            'country' => $data['country'],
            'slot' => $data['slot'],
            'blockname' => $data['name'],
            'direction' => $data['direction'],
            'type' => $data['type'],
            'position' => $data['position'],
        );

        $blockManager = $this->app["red_kite_cms.blocks_manager_factory"]->create('add');

        return $blockManager->add($this->app["red_kite_cms.configuration_handler"]->siteDir(), $addOptions, $username);
    }
public function execute(array $options, $username)
    {
        $data = $options["data"];
        $addOptions = array(
            'page' => $data['page'],
            'language' => $data['language'],
            'country' => $data['country'],
            'slot' => $data['slot'],
            'blockname' => $data['name'],
            'direction' => $data['direction'],
            'type' => $data['type'],
            'position' => $data['position'],
        );

        $blockManager = $this->app["red_kite_cms.blocks_manager_factory"]->create('add');

        return $blockManager->add($this->app["red_kite_cms.configuration_handler"]->siteDir(), $addOptions, $username);
    }
{@inheritdoc}