You are here

function path_metatags_i18n_i18n_object_info in Path metatags 7

Implements hook_i18n_object_info().

File

path_metatags_i18n/path_metatags_i18n.module, line 26
Internationalization (i18n) integration.

Code

function path_metatags_i18n_i18n_object_info() {

  // Generic object properties, title, etc.
  $info['path_metatags'] = array(
    'title' => t('Path metatags'),
    // Field to be used as key to index different path metatags.
    'key' => 'machine_name',
    'class' => 'i18n_path_metatags_object',
    'load callback' => 'path_metatags_load_by_name',
    // Mapping object fields and menu place holders.
    'placeholders' => array(
      '%path_metatags_ui_cache' => 'machine_name',
    ),
    // Path for automatically generated translation tabs. Note placeholders above are used here.
    'edit path' => 'admin/structure/path-metatags/edit/%path_metatags_ui_cache',
    'translate tab' => 'admin/structure/path-metatags/edit/%path_metatags_ui_cache/translate',
    // Metadata for string translation.
    'string translation' => array(
      'textgroup' => 'path_metatags',
      'type' => 'path_metatags',
      'properties' => array(),
      'translate path' => 'admin/structure/path-metatags/edit/%path_metatags_ui_cache/translate/%i18n_language',
    ),
  );
  return $info;
}