summaryrefslogtreecommitdiffstats
path: root/pinyin.module
blob: 78417b55aba5c7038bf1ee47e5bcf631c3fd386e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * Implements hook_field_formatter_info_alter().
 */
function pinyin_field_formatter_info_alter(array &$info) {
  $info['string']['field_types'][] = 'pinyin_shortcode';
}

/**
 * Implements hook_field_widget_info_alter().
 */
function pinyin_field_widget_info_alter(array &$info) {
  $info['string_textfield']['field_types'][] = 'pinyin_shortcode';
}