You are here

function pathauto_i18n_get_bundle_default in Pathauto i18n 8

Same name and namespace in other branches
  1. 7 pathauto_i18n.module \pathauto_i18n_get_bundle_default()

Returns the configured default value for a bundle.

4 calls to pathauto_i18n_get_bundle_default()
pathauto_i18n_configuration_form in ./pathauto_i18n.module
PORTED to 8.x-1.x - src/Pathautoi18nWidget.php.
pathauto_i18n_init_property in ./pathauto_i18n.module
Init the property.
pathauto_i18n_node_form_node_type_form_alter in modules/pathauto_i18n_node/pathauto_i18n_node.module
Implements hook_form_FORM_ID_alter().
pathauto_i18n_node_node_load in modules/pathauto_i18n_node/pathauto_i18n_node.module
Implements hook_node_load().

File

./pathauto_i18n.module, line 62
Provides common functions and callbacks for pathauto_i18n submodules.

Code

function pathauto_i18n_get_bundle_default($entity_type, $bundle, $default = 1) {
  return variable_get('pathauto_i18n_default_' . $entity_type . '_' . $bundle, $default);
}