You are here

function _linkit_taxonomy_get_default_settings in Linkit 6

Same name and namespace in other branches
  1. 7 plugins/linkit_taxonomy/linkit_taxonomy.module \_linkit_taxonomy_get_default_settings()

Prevent "PHP notice: Undefined variable" by merging the settings with the defule values

2 calls to _linkit_taxonomy_get_default_settings()
linkit_admin_settings in ./linkit.admin.inc
@file Admin page callbacks for the Linkit module.
linkit_taxonomy_linkit_load_plugins in plugins/linkit_taxonomy/linkit_taxonomy.module
Implementation of hook_linkit_load_plugins().

File

plugins/linkit_taxonomy/linkit_taxonomy.module, line 106
Extend Linkit with taxonomy links.

Code

function _linkit_taxonomy_get_default_settings(&$settings) {

  // Merge settings with the default settings
  $settings += array(
    'display_settings' => array(
      'show_parent' => 0,
    ),
  );
}