Sha256: 3a22882f575e9a9108f6adedc13d5adb041dd6f4d8756a98a0a2bc2a70ec70bb

Contents?: true

Size: 763 Bytes

Versions: 6

Compression:

Stored size: 763 Bytes

Contents

module WpWrapper
  module Modules
    module Plugins
      module TrackingCode
      
        def configure_tracking_code(tracking_code)
          options   =   {
            'data[tracking_head][code]'       =>  {:value     =>  tracking_code,  :type   =>  :input}, 
            'data[tracking_head][disable]'    =>  {:checked   =>  false,          :type   =>  :checkbox},
            'data[tracking_footer][code]'     =>  {:value     =>  '',             :type   =>  :input}, 
            'data[tracking_footer][disable]'  =>  {:checked   =>  true,           :type   =>  :checkbox},
          }
        
          return set_options_and_submit("options-general.php?page=tracking-code", {:method => /post/i}, options)
        end
      
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wp_wrapper-0.0.7 lib/wp_wrapper/modules/plugins/tracking_code.rb
wp_wrapper-0.0.6 lib/wp_wrapper/modules/plugins/tracking_code.rb
wp_wrapper-0.0.5 lib/wp_wrapper/modules/plugins/tracking_code.rb
wp_wrapper-0.0.4 lib/wp_wrapper/modules/plugins/tracking_code.rb
wp_wrapper-0.0.3 lib/wp_wrapper/modules/plugins/tracking_code.rb
wp_wrapper-0.0.2 lib/wp_wrapper/modules/plugins/tracking_code.rb