diff --git a/sharethis.admin.inc b/sharethis.admin.inc index dccfbc6..b3c7d0c 100644 --- a/sharethis.admin.inc +++ b/sharethis.admin.inc @@ -22,12 +22,6 @@ function sharethis_configuration_form($form, &$form_state) { drupal_add_css($my_path . '/stlib_picker.css'); $current_options_array = sharethis_get_options_array(); global $base_url; - // Create the variables related to widget choice. - $widget_type = $current_options_array['widget']; - $widget_markup = ""; - if ($widget_type == "st_multi") { - $widget_markup = "st_multi"; - } // Create the variables related to button choice. $button_choice = check_plain($current_options_array['buttons']); // Create the variables related to services chosen. diff --git a/sharethis.module b/sharethis.module index 47094b4..fbf9af5 100644 --- a/sharethis.module +++ b/sharethis.module @@ -74,8 +74,6 @@ function sharethis_configuration_form_submit($form, &$form_state) { /** * Implements hook_menu(). - * - * This is the ShareThis Config Menu. */ function sharethis_menu() { $items['admin/config/services/sharethis'] = array( @@ -91,9 +89,6 @@ function sharethis_menu() { /** * Implements hook_node_view(). - * - * Inserts ShareThis widget code onto each node view. - * @TODO: Want to add the option somewhere to select nodes. */ function sharethis_node_view($node, $view_mode, $langcode) { // Don't display if the user is currently searching, or in the RSS feed. @@ -208,9 +203,13 @@ function sharethis_theme($existing, $type, $theme, $path) { } /** - * Function sharethis_get_light_options() is creating options. - * It has to be passed to stLight.options - * $data_options array is selected by publisher in admin panel. + * Function is creating options to be passed to stLight. + * + * @param array $data_options + * The settings selected by publisher in admin panel. + * + * @return array + * An array of options. */ function sharethis_get_light_options($data_options) { // Provide the publisher ID.