You are here

function table_trash_add_html_head in Table Trash 7

Adds a <meta viewport> tag to the <head>.

Add inside the <head> tag the following meta-tag essential for mobiles: <meta name="viewport" content="initial-scale=1" />

1 call to table_trash_add_html_head()
table_trash_preprocess_html in ./table_trash.module
Implements hook_preprocess_page().

File

./table_trash.module, line 219
table_trash.module

Code

function table_trash_add_html_head() {
  $data = array(
    '#tag' => 'meta',
    '#attributes' => array(
      'name' => 'viewport',
      'content' => 'initial-scale=1',
    ),
  );
  drupal_add_html_head($data, 'system_meta_viewport');
}