function i18n_block_i18n_object_info in Internationalization 7
Implements hook_i18n_object_info().
File
- i18n_block/
i18n_block.i18n.inc, line 10 - Internationalization (i18n) hooks
Code
function i18n_block_i18n_object_info() {
$info['block'] = array(
'title' => t('Block'),
'class' => 'i18n_block_object',
'load callback' => 'block_load',
'key' => array(
'module',
'delta',
),
'placeholders' => array(
'%module' => 'module',
'%delta' => 'delta',
),
'edit path' => 'admin/structure/block/manage/%module/%delta/configure',
'string translation' => array(
'textgroup' => 'blocks',
'properties' => array(
'title' => array(
'title' => t('Title'),
'empty' => '<none>',
),
'body' => array(
'title' => t('Body'),
'format' => 'format',
),
),
'translate path' => 'admin/structure/block/manage/%module/%delta/translate/%i18n_language',
),
);
return $info;
}