use quicktabs,tab type is block and i choose on block,how can i use quicktabs functions get the block content

Comments

tom-new’s picture

The block which i choosed is defined in a module file,named hook_blockname

tom-new’s picture

$block = module_invoke('quicktabs', 'block_view','arvato');
print_r($block);

render

Array
(
    [content] => Array
        (
            [#attached] => Array
                (
                    [css] => Array
                        (
                            [0] => Array
                                (
                                    [data] => sites/all/modules/quicktabs/css/quicktabs.css
                                )

                        )

                    [js] => Array
                        (
                            [0] => Array
                                (
                                    [data] => sites/all/modules/quicktabs/js/quicktabs.js
                                )

                            [1] => Array
                                (
                                    [data] => misc/progress.js
                                    [weight] => -100
                                )

                            [2] => Array
                                (
                                    [data] => Array
                                        (
                                            [quicktabs] => Array
                                                (
                                                    [qt_arvato] => Array
                                                        (
                                                            [name] => arvato
                                                            [tabs] => Array
                                                                (
                                                                    [0] => Array
                                                                        (
                                                                            [bid] => user_delta_login
                                                                            [hide_title] => 1
                                                                        )

                                                                )

                                                            [ajaxPageState] => Array
                                                                (
                                                                    [theme] => grayscale
                                                                    [theme_token] => QnP2XaDFE-3TZzMWXFM6W2fMoxu_wVoZXSstHQ4qLFM
                                                                )

                                                        )

                                                )

                                        )

                                    [type] => setting
                                )

                        )

                )

            [content] => Array
                (
                    [#theme] => qt_quicktabs
                    [#options] => Array
                        (
                            [attributes] => Array
                                (
                                    [id] => quicktabs-arvato
                                    [class] => quicktabs-wrapper quicktabs-style-nostyle
                                )

                        )

                    [tabs] => Array
                        (
                            [#theme] => qt_quicktabs_tabset
                            [#options] => Array
                                (
                                    [active] => 0
                                    [style] => nostyle
                                )

                            [tablinks] => Array
                                (
                                    [0] => Array
                                        (
                                            [#type] => link
                                            [#title] => 历史兑换
                                            [#href] => iframe/user/2/mypoints
                                            [#options] => Array
                                                (
                                                    [attributes] => Array
                                                        (
                                                            [id] => quicktabs-tab-arvato-0
                                                        )

                                                    [query] => Array
                                                        (
                                                            [qt-arvato] => 0
                                                        )

                                                    [fragment] => qt-arvato
                                                )

                                        )

                                )

                        )

                    [container] => Array
                        (
                            [#prefix] => 

                            [#suffix] => 

                            [divs] => Array
                                (
                                    [0] => Array
                                        (
                                            [#prefix] => 

                                            [#suffix] => 

                                            [content] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

            [#contextual_links] => Array
                (
                    [quicktabs] => Array
                        (
                            [0] => admin/structure/quicktabs/manage
                            [1] => Array
                                (
                                    [0] => arvato
                                )

                        )

                )

        )

    [subject] => 兑购历史
)

How can i get blocks's content programmed

smustgrave’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

With D7 EOL approaching in a month I'm starting to triage the D7 side of quicktabs queue. This doesn't appear to have any code so believe this may not make it, sorry! Thanks though!

If still an issue or needed for 4.0.x (latest branch) feel free to reopen