Создаем стиль для картинок программно Drupal7

$style = image_style_save(array('name' => 'avatar'));
$effect = array(
'name' => 'image_scale',
'data' => array(
'width' => 64,
'height' => 64,
'upscale' => TRUE,
),
'isid' => $style['isid'],
);
image_effect_save($effect)

Категория: 
The code has been tested and works

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.