'Chrome Frame', 'description' => 'Configure Chrome Frame Settings', 'page callback' => 'drupal_get_form', 'page arguments' => array('chrome_frame_settings'), 'access arguments' => array('administer site configuration'), 'file' => 'chrome_frame.admin.inc', 'type' => MENU_NORMAL_ITEM, ); return $items; } /** * Implements hook_init(). * * Add the chrome meta tag, and all the javascript */ function chrome_frame_init() { drupal_set_html_head(''); } /** * Implements hook_footer(). */ function chrome_frame_footer($main = 0) { // Construct the options passed to the CFInstall check function. $options = drupal_to_js(array( 'node' => 'chrome-frame', 'mode' => variable_get('chrome_frame_mode', 'inline'), )); switch (variable_get('chrome_frame_prompt', 0)) { case 2: // Always prompt. return '
'; break; case 1: // Prompt only for IE 6. return '
'; break; case 0: // Don't prompt to install plugin. break; } }