function locale_form_node_type_form_alter

Implements hook_form_FORM_ID_alter().

File

modules/locale/locale.module, line 325

Code

function locale_form_node_type_form_alter(&$form, &$form_state) {
    if (isset($form['type'])) {
        $form['workflow']['language_content_type'] = array(
            '#type' => 'radios',
            '#title' => t('Multilingual support'),
            '#default_value' => variable_get('language_content_type_' . $form['#node_type']->type, 0),
            '#options' => array(
                t('Disabled'),
                t('Enabled'),
            ),
            '#description' => t('Enable multilingual support for this content type. If enabled, a language selection field will be added to the editing form, allowing you to select from one of the <a href="!languages">enabled languages</a>. If disabled, new posts are saved with the default language. Existing content will not be affected by changing this option.', array(
                '!languages' => url('admin/config/regional/language'),
            )),
        );
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.