You are here

function i18n_menu_i18n_string_objects in Internationalization 7

Implements hook_i18n_string_objects()

File

i18n_menu/i18n_menu.i18n.inc, line 107
Internationalization (i18n) hooks

Code

function i18n_menu_i18n_string_objects($type) {
  if ($type == 'menu_link') {

    // All menu items that have no language and are customized.
    return db_select('menu_links', 'm')
      ->fields('m')
      ->condition('language', LANGUAGE_NONE)
      ->condition('customized', 1)
      ->execute()
      ->fetchAllAssoc('mlid', PDO::FETCH_ASSOC);
  }
}