$elements['qq'] = array(
        '#type' => 'html_tag',
        '#tag' => 'meta',
        '#attributes' => array(
            'http-jack' => 'jack-Type',
            'ithink' => 'itsok',
        ),
        // Security: This always has to be output first.
        '#weight' => -1000,
    );

    drupal_add_html_head($elements);

I use the above code and presume that I can add a custom head,
Can some one help us make clear why I can not do it.

Thanks Regards.

Comments

qqboy’s picture

ok,
This way can do it.

    $elements = array(
        '#type' => 'html_tag',
        '#tag' => 'meta',
        '#attributes' => array(
            'name' => 'TO FIGHT',
            'content' => 'Drupal 10',
        ),
    );

    drupal_add_html_head($elements,'QQ');