public function set_service($id, Sharing_Source $service)
 {
     // Update the options for this service
     $options = get_option('sharing-options');
     // No options yet
     if (!is_array($options)) {
         $options = array();
     }
     /**
      * Get the state of a sharing button.
      *
      * @module sharedaddy
      *
      * @since 1.1.0
      *
      * @param array $args {
      *	State of a sharing button.
      *
      *	@type string $id Service ID.
      *	@type array $options Array of all sharing options.
      *	@type array $service Details about a service.
      * }
      */
     do_action('sharing_get_button_state', array('id' => $id, 'options' => $options, 'service' => $service));
     $options[$id] = $service->get_options();
     update_option('sharing-options', array_filter($options));
 }
 public function set_service($id, Sharing_Source $service)
 {
     // Update the options for this service
     $options = get_option('sharing-options');
     // No options yet
     if (!is_array($options)) {
         $options = array();
     }
     do_action('sharing_get_button_state', array('id' => $id, 'options' => $options, 'service' => $service));
     $options[$id] = $service->get_options();
     update_option('sharing-options', array_filter($options));
 }