function _linkit_node_get_default_settings in Linkit 7
Same name and namespace in other branches
- 6 plugins/linkit_node/linkit_node.module \_linkit_node_get_default_settings()
Prevent "PHP notice: Undefined variable" by merging the settings with the defule values
2 calls to _linkit_node_get_default_settings()
- linkit_admin_settings in ./
linkit.admin.inc - @file Admin page callbacks for the Linkit module.
- linkit_node_linkit_load_plugins in plugins/
linkit_node/ linkit_node.module - Implements hook_linkit_load_plugins().
File
- plugins/
linkit_node/ linkit_node.module, line 147 - Extend Linkit with node links.
Code
function _linkit_node_get_default_settings(&$settings) {
// Merge settings with the default settings
$settings += array(
'display_settings' => array(),
'content_types' => array(),
);
$settings['display_settings'] += array(
'nid' => 0,
'content_type' => 0,
'status' => 0,
'language' => 0,
'created' => 0,
'changed' => 0,
'show_unpublished' => 0,
'show_books' => 0,
);
}