function i18n_node_i18n_object_info in Internationalization 7
Implements hook_i18n_object_info().
File
- i18n_node/
i18n_node.i18n.inc, line 11 - Internationalization (i18n) hooks
Code
function i18n_node_i18n_object_info() {
$info['node_type'] = array(
'title' => t('Node type'),
'key' => 'type',
'load callback' => 'node_type_get_type',
'placeholders' => array(
'%node_type' => 'type',
),
'edit path' => 'admin/structure/types/manage/%node_type',
'translate tab' => 'admin/structure/types/manage/%node_type/translate',
// We can easily list all these objects
'list callback' => 'node_type_get_types',
// Metadata for string translation
'string translation' => array(
'textgroup' => 'node',
'type' => 'type',
'properties' => array(
'name' => t('Name'),
'title_label' => t('Title label'),
'description' => t('Description'),
'help' => t('Help text'),
),
'translate path' => 'admin/structure/types/manage/%node_type/translate/%i18n_language',
),
);
return $info;
}