You are here

function pathauto_i18n_get_bundle_default in Pathauto i18n 7

Same name and namespace in other branches
  1. 8 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
Attach Pathauto i18n field configuration to form.
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 54
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);
}