function pathauto_i18n_node_form_node_type_form_alter in Pathauto i18n 8
Same name and namespace in other branches
- 7 modules/pathauto_i18n_node/pathauto_i18n_node.module \pathauto_i18n_node_form_node_type_form_alter()
Implements hook_form_FORM_ID_alter().
This will add pathauto_i18n options to the node type form. These settings will be used as default for every node of this node type.
File
- modules/
pathauto_i18n_node/ pathauto_i18n_node.module, line 174 - Provides tools for creating multilanguage aliases for nodes.
Code
function pathauto_i18n_node_form_node_type_form_alter(&$form, $form_state) {
// Add the pathauto i18n form.
$form['workflow']['pathauto_i18n_default_node'] = array(
'#type' => 'checkbox',
'#title' => t('Generate automatic URL alias for all languages by default'),
'#default_value' => pathauto_i18n_get_bundle_default('node', $form['#node_type']->type),
'#description' => t('Set the default behaviour generating aliases for all available languages.'),
);
}