// Using the closure to map jQuery to $. (function ($) { // Store our function as a property of Drupal.behaviors. Drupal.behaviors.arteleku_historico = { attach: function (context, settings) { console.log(context); console.log(settings); } }; }(jQuery));