/** * Implements hook_node_view(). */ function article_tts_node_view($node, $view_mode, $langcode) { $enabled_types = variable_get('article_tts_content_types', array('story')); // Default to 'story' if ($view_mode == 'full' && in_array($node->type, $enabled_types)) { $node->content['article_tts'] = array( '#markup' => theme('article_tts_player'), '#weight' => -10, '#attached' => array( 'css' => array( drupal_get_path('module', 'article_tts') . '/article_tts.css' => array(), ), ), ); } } /** * Implements hook_menu(). */ function article_tts_menu() { $items['admin/config/content/article_tts'] = array( 'title' => 'Article TTS Settings', 'description' => 'Configure text-to-speech settings.', 'page callback' => 'drupal_get_form', 'page arguments' => array('article_tts_settings_form'), 'access arguments' => array('administer site configuration'), 'type' => MENU_NORMAL_ITEM, ); return $items; } /** * Settings form. */ function article_tts_settings_form() { $form = array(); $content_types = node_type_get_names(); $form['article_tts_content_types'] = array( '#type' => 'checkboxes', '#title' => t('Content types to enable TTS'), '#options' => $content_types, '#default_value' => variable_get('article_tts_content_types', array('story')), ); return system_settings_form($form); }

7 Tips to Fewer Objections from Girls You Want to Date

One Date girl next to the number one

Get The Girl In Just One Date

It only takes one date to get the girl you want. Best of all, the date's easy to get… and girls love it.

Inside One Date, You'll Learn

  • How to build instant chemistry
  • Ways to easily create arousal
  • How to get girls to do what you want
  • The secret to a devoted girlfriend

…and more great Girls Chase Tech