Ver código fonte

Handler: Option is "preset", not "title"

Frederic G. MARAND 13 anos atrás
pai
commit
a6509e1293
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      views/tweak_handler_field_user_picture_preset.inc

+ 2 - 2
views/tweak_handler_field_user_picture_preset.inc

@@ -7,7 +7,7 @@ class tweak_handler_field_user_picture_preset extends views_handler_field_user_p
   function option_definition() {
     $options = parent::option_definition();
     $options['preset'] = array(
-      'default' => $this->definition['title'],
+      'default' => $this->definition['preset'],
       'translatable' => FALSE,
     );
     return $options;
@@ -53,7 +53,7 @@ class tweak_handler_field_user_picture_preset extends views_handler_field_user_p
     $pid = $this->options['preset'];
     if ($pid) {
       $preset = imagecache_preset($pid);
-      return theme_imagecache($preset['presetname'], $values->{$this->field_alias});
+      return theme_imagecache($preset['presetname'], $this->get_value($values));
     }
     else {
       return parent::render($values);