Projet

Général

Profil

Révision 2c8c2b87

Ajouté par Assos Assos il y a presque 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/addthis/includes/addthis.block.inc
49 49
 * Implements hook_block_configure().
50 50
 */
51 51
function addthis_block_configure($delta = '') {
52
  AddThis::getInstance()->includeWidgetJs();
53

  
54 52
  return array();
55 53
}
56 54

  
57 55
/**
58 56
 * Implements hook_block_save().
57
 *
58
 * @todo Refactor settings save validation to appropriate class/method.
59
 *   There should come classes for each render type that also handle the saving
60
 *   of the settings data.
59 61
 */
60 62
function addthis_block_save($delta = '', $edit = array()) {
61 63
  variable_set(AddThis::BLOCK_WIDGET_TYPE_KEY, $edit['addthis_settings']['type']);
62
  variable_set(AddThis::BLOCK_WIDGET_SETTINGS_KEY, $edit['addthis_settings']['settings']);
64
  if ($edit['addthis_settings']['type'] != 'addthis_disabled') {
65
    variable_set(AddThis::BLOCK_WIDGET_SETTINGS_KEY, $edit['addthis_settings']['settings']);
66
  }
63 67
}
64 68

  
65 69
/**

Formats disponibles : Unified diff