function i18n_select_mode in Internationalization 7
Get current mode for i18n selection
Parameters
$type: Selection type: 'nodes', 'taxonomy', etc..
2 calls to i18n_select_mode()
- i18n_select_query_node_access_alter in i18n_select/
i18n_select.module - Implementation of hook_query_node_access_alter().
- i18n_select_query_term_access_alter in i18n_select/
i18n_select.module - Implementation of hook_query_term_access_alter().
File
- i18n_select/
i18n_select.module, line 75 - Multilingual content selection module.
Code
function i18n_select_mode($type = NULL) {
if (i18n_select() && (!$type || variable_get('i18n_select_' . $type, TRUE))) {
return I18N_SELECT_NORMAL;
}
else {
return I18N_SELECT_NONE;
}
}