summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbratanon2012-05-07 08:57:29 +0200
committerbratanon2012-05-07 08:57:29 +0200
commit2fcb1ef8c3b957caa24900031b03d8823663263f (patch)
tree46939aeba64fbd27d52172ee2119191d39b513d4
parent2044ebd88ccccbd952ee1fdba11470913f44f3b7 (diff)
Fixed #1565150: Fixed Notice: Undefined index: javascript7.x-2.5
-rw-r--r--linkit.field.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/linkit.field.inc b/linkit.field.inc
index 120b60e..05b2800 100644
--- a/linkit.field.inc
+++ b/linkit.field.inc
@@ -58,10 +58,8 @@ function linkit_process_widget(&$element) {
$field = field_info_field($element['#field_name']);
$instance = field_info_instance($element['#entity_type'], $element['#field_name'], $element['#bundle']);
- if (isset($instance['settings']['linkit'])) {
-
+ if (isset($instance['settings']['linkit']['enable']) && $instance['settings']['linkit']['enable']) {
// Add base settings.
- // @TODO: This is runned more then once?
_linkit_add_settings('field');
ctools_include('plugins');