field_content_languages

function field_content_languages

field_content_languages()

Returns available content languages.

The languages that may be associated to fields include LANGUAGE_NONE.

Return value

An array of language codes.

Related topics

File

modules/field/field.multilingual.inc, line 157
Functions implementing Field API multilingual support.

Code

function field_content_languages() {
  return array_keys(language_list() + array(LANGUAGE_NONE => NULL));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.multilingual.inc/function/field_content_languages/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部