Define language negotiation methods.
An associative array of language negotiation method definitions. The keys are method identifiers, and the values are associative arrays definining each method, with the following elements:
hook_language_negotiation_info_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_language_negotiation_info() {
return array(
'custom_language_negotiation_method' => array(
'callbacks' => array(
'negotiation' => 'custom_negotiation_callback',
'language_switch' => 'custom_language_switch_callback',
'url_rewrite' => 'custom_url_rewrite_callback',
),
'file' => drupal_get_path('module', 'custom') . '/custom.module',
'weight' => -4,
'types' => array(
'custom_language_type',
),
'name' => t('Custom language negotiation method'),
'description' => t('This is a custom language negotiation method.'),
'cache' => 0,
),
);
}