code: function (hooks) {
          var obj = {};
          hooks.forEach(function (elements) {
              elements.forEach(function (item) {
                  if (!obj[item.name]) {
                      obj[item.name] = item;
                  }
              });
          });
          return obj;
      }
docs: Allow plugins to register toggle-able elements
  @param hooks
  @returns {{}}