image_effects_text_test.module 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. <?php
  2. /**
  3. * @file
  4. * Code for the Image Effects Text test feature.
  5. */
  6. /**
  7. * Implements hook_image_default_styles().
  8. */
  9. function image_effects_text_test_image_default_styles() {
  10. $styles = array();
  11. // Exported image style: text-test-position-orientation.
  12. $styles['text-test-position-orientation'] = array(
  13. 'name' => 'text-test-position-orientation',
  14. 'effects' => array(
  15. 115 => array(
  16. 'label' => 'Overlay (watermark)',
  17. 'help' => 'Choose the file image you wish to use as an overlay, and position it in a layer on top of the canvas.',
  18. 'effect callback' => 'canvasactions_file2canvas_image',
  19. 'dimensions passthrough' => TRUE,
  20. 'form callback' => 'canvasactions_file2canvas_form',
  21. 'summary theme' => 'canvasactions_file2canvas_summary',
  22. 'module' => 'imagecache_canvasactions',
  23. 'name' => 'canvasactions_file2canvas',
  24. 'data' => array(
  25. 'xpos' => 'left',
  26. 'ypos' => 'top',
  27. 'alpha' => '100',
  28. 'path' => 'module://image_effects_text_test/grid800x600.png',
  29. ),
  30. 'weight' => '-10',
  31. ),
  32. 116 => array(
  33. 'label' => 'Tekst',
  34. 'help' => 'Add static or dynamic (coded) text to an image.',
  35. 'dimensions passthrough' => TRUE,
  36. 'form callback' => 'image_effects_text_form',
  37. 'effect callback' => 'image_effects_text_effect',
  38. 'summary theme' => 'image_effects_text_summary',
  39. 'module' => 'image_effects_text',
  40. 'name' => 'image_effects_text',
  41. 'data' => array(
  42. 'size' => '18',
  43. 'xpos' => '100',
  44. 'ypos' => '200',
  45. 'halign' => 'left',
  46. 'valign' => 'top',
  47. 'RGB' => array(
  48. 'HEX' => '000000',
  49. ),
  50. 'alpha' => '100',
  51. 'angle' => '0',
  52. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  53. 'text_source' => 'text',
  54. 'text' => '100,200 left,top',
  55. 'php' => 'return \'Hello World!\'',
  56. ),
  57. 'weight' => '-8',
  58. ),
  59. 117 => array(
  60. 'label' => 'Tekst',
  61. 'help' => 'Add static or dynamic (coded) text to an image.',
  62. 'dimensions passthrough' => TRUE,
  63. 'form callback' => 'image_effects_text_form',
  64. 'effect callback' => 'image_effects_text_effect',
  65. 'summary theme' => 'image_effects_text_summary',
  66. 'module' => 'image_effects_text',
  67. 'name' => 'image_effects_text',
  68. 'data' => array(
  69. 'size' => '18',
  70. 'xpos' => 'left+300',
  71. 'ypos' => 'top+200',
  72. 'halign' => 'left',
  73. 'valign' => 'center',
  74. 'RGB' => array(
  75. 'HEX' => '000000',
  76. ),
  77. 'alpha' => '100',
  78. 'angle' => '0',
  79. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  80. 'text_source' => 'text',
  81. 'text' => 'left+300,top+200 left,center',
  82. 'php' => 'return \'Hello World!\'',
  83. ),
  84. 'weight' => '3',
  85. ),
  86. 118 => array(
  87. 'label' => 'Tekst',
  88. 'help' => 'Add static or dynamic (coded) text to an image.',
  89. 'dimensions passthrough' => TRUE,
  90. 'form callback' => 'image_effects_text_form',
  91. 'effect callback' => 'image_effects_text_effect',
  92. 'summary theme' => 'image_effects_text_summary',
  93. 'module' => 'image_effects_text',
  94. 'name' => 'image_effects_text',
  95. 'data' => array(
  96. 'size' => '18',
  97. 'xpos' => 'right-300',
  98. 'ypos' => '200+top',
  99. 'halign' => 'left',
  100. 'valign' => 'bottom',
  101. 'RGB' => array(
  102. 'HEX' => '000000',
  103. ),
  104. 'alpha' => '100',
  105. 'angle' => '0',
  106. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  107. 'text_source' => 'text',
  108. 'text' => 'right-300,200+top left,bottom',
  109. 'php' => 'return \'Hello World!\'',
  110. ),
  111. 'weight' => '4',
  112. ),
  113. 119 => array(
  114. 'label' => 'Tekst',
  115. 'help' => 'Add static or dynamic (coded) text to an image.',
  116. 'dimensions passthrough' => TRUE,
  117. 'form callback' => 'image_effects_text_form',
  118. 'effect callback' => 'image_effects_text_effect',
  119. 'summary theme' => 'image_effects_text_summary',
  120. 'module' => 'image_effects_text',
  121. 'name' => 'image_effects_text',
  122. 'data' => array(
  123. 'size' => '18',
  124. 'xpos' => 'center-300',
  125. 'ypos' => '100+center',
  126. 'halign' => 'center',
  127. 'valign' => 'top',
  128. 'RGB' => array(
  129. 'HEX' => '000000',
  130. ),
  131. 'alpha' => '100',
  132. 'angle' => '0',
  133. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  134. 'text_source' => 'text',
  135. 'text' => 'center-300,100+center center,top',
  136. 'php' => 'return \'Hello World!\'',
  137. ),
  138. 'weight' => '5',
  139. ),
  140. 120 => array(
  141. 'label' => 'Tekst',
  142. 'help' => 'Add static or dynamic (coded) text to an image.',
  143. 'dimensions passthrough' => TRUE,
  144. 'form callback' => 'image_effects_text_form',
  145. 'effect callback' => 'image_effects_text_effect',
  146. 'summary theme' => 'image_effects_text_summary',
  147. 'module' => 'image_effects_text',
  148. 'name' => 'image_effects_text',
  149. 'data' => array(
  150. 'size' => '18',
  151. 'xpos' => '-100+center',
  152. 'ypos' => 'center+100',
  153. 'halign' => 'center',
  154. 'valign' => 'center',
  155. 'RGB' => array(
  156. 'HEX' => '000000',
  157. ),
  158. 'alpha' => '100',
  159. 'angle' => '0',
  160. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  161. 'text_source' => 'text',
  162. 'text' => '-100+center,center+100 center,center',
  163. 'php' => 'return \'Hello World!\'',
  164. ),
  165. 'weight' => '6',
  166. ),
  167. 121 => array(
  168. 'label' => 'Tekst',
  169. 'help' => 'Add static or dynamic (coded) text to an image.',
  170. 'dimensions passthrough' => TRUE,
  171. 'form callback' => 'image_effects_text_form',
  172. 'effect callback' => 'image_effects_text_effect',
  173. 'summary theme' => 'image_effects_text_summary',
  174. 'module' => 'image_effects_text',
  175. 'name' => 'image_effects_text',
  176. 'data' => array(
  177. 'size' => '18',
  178. 'xpos' => '-200+right',
  179. 'ypos' => 'bottom-200',
  180. 'halign' => 'center',
  181. 'valign' => 'bottom',
  182. 'RGB' => array(
  183. 'HEX' => '000000',
  184. ),
  185. 'alpha' => '100',
  186. 'angle' => '0',
  187. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  188. 'text_source' => 'text',
  189. 'text' => '-200+right,bottom-200 center, bottom',
  190. 'php' => 'return \'Hello World!\'',
  191. ),
  192. 'weight' => '7',
  193. ),
  194. 122 => array(
  195. 'label' => 'Tekst',
  196. 'help' => 'Add static or dynamic (coded) text to an image.',
  197. 'dimensions passthrough' => TRUE,
  198. 'form callback' => 'image_effects_text_form',
  199. 'effect callback' => 'image_effects_text_effect',
  200. 'summary theme' => 'image_effects_text_summary',
  201. 'module' => 'image_effects_text',
  202. 'name' => 'image_effects_text',
  203. 'data' => array(
  204. 'size' => '18',
  205. 'xpos' => '300',
  206. 'ypos' => '500',
  207. 'halign' => 'right',
  208. 'valign' => 'top',
  209. 'RGB' => array(
  210. 'HEX' => '000000',
  211. ),
  212. 'alpha' => '100',
  213. 'angle' => '0',
  214. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  215. 'text_source' => 'text',
  216. 'text' => '300,500 right,top',
  217. 'php' => 'return \'Hello World!\'',
  218. ),
  219. 'weight' => '8',
  220. ),
  221. 123 => array(
  222. 'label' => 'Tekst',
  223. 'help' => 'Add static or dynamic (coded) text to an image.',
  224. 'dimensions passthrough' => TRUE,
  225. 'form callback' => 'image_effects_text_form',
  226. 'effect callback' => 'image_effects_text_effect',
  227. 'summary theme' => 'image_effects_text_summary',
  228. 'module' => 'image_effects_text',
  229. 'name' => 'image_effects_text',
  230. 'data' => array(
  231. 'size' => '18',
  232. 'xpos' => 'right-center+100',
  233. 'ypos' => 'bottom-100',
  234. 'halign' => 'right',
  235. 'valign' => 'center',
  236. 'RGB' => array(
  237. 'HEX' => '000000',
  238. ),
  239. 'alpha' => '100',
  240. 'angle' => '0',
  241. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  242. 'text_source' => 'text',
  243. 'text' => 'right-center+100,bottom-100 right,center',
  244. 'php' => 'return \'Hello World!\'',
  245. ),
  246. 'weight' => '9',
  247. ),
  248. 124 => array(
  249. 'label' => 'Tekst',
  250. 'help' => 'Add static or dynamic (coded) text to an image.',
  251. 'dimensions passthrough' => TRUE,
  252. 'form callback' => 'image_effects_text_form',
  253. 'effect callback' => 'image_effects_text_effect',
  254. 'summary theme' => 'image_effects_text_summary',
  255. 'module' => 'image_effects_text',
  256. 'name' => 'image_effects_text',
  257. 'data' => array(
  258. 'size' => '18',
  259. 'xpos' => 'right-100',
  260. 'ypos' => 'bottom-100',
  261. 'halign' => 'right',
  262. 'valign' => 'bottom',
  263. 'RGB' => array(
  264. 'HEX' => '000000',
  265. ),
  266. 'alpha' => '100',
  267. 'angle' => '0',
  268. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  269. 'text_source' => 'text',
  270. 'text' => 'right-100,bottom-100 right,bottom',
  271. 'php' => 'return \'Hello World!\'',
  272. ),
  273. 'weight' => '10',
  274. ),
  275. ),
  276. );
  277. // Exported image style: text-test-rotate-wrt-alignment.
  278. $styles['text-test-rotate-wrt-alignment'] = array(
  279. 'name' => 'text-test-rotate-wrt-alignment',
  280. 'effects' => array(
  281. 125 => array(
  282. 'label' => 'Schalen',
  283. 'help' => 'Door te schalen worden de originele verhoudingen behouden. Als één van de dimensies wordt ingevuld zal de andere worden berekend.',
  284. 'effect callback' => 'image_scale_effect',
  285. 'dimensions callback' => 'image_scale_dimensions',
  286. 'form callback' => 'image_scale_form',
  287. 'summary theme' => 'image_scale_summary',
  288. 'module' => 'image',
  289. 'name' => 'image_scale',
  290. 'data' => array(
  291. 'width' => '800',
  292. 'height' => '',
  293. 'upscale' => 0,
  294. ),
  295. 'weight' => '1',
  296. ),
  297. 126 => array(
  298. 'label' => 'Overlay (watermark)',
  299. 'help' => 'Choose the file image you wish to use as an overlay, and position it in a layer on top of the canvas.',
  300. 'effect callback' => 'canvasactions_file2canvas_image',
  301. 'dimensions passthrough' => TRUE,
  302. 'form callback' => 'canvasactions_file2canvas_form',
  303. 'summary theme' => 'canvasactions_file2canvas_summary',
  304. 'module' => 'imagecache_canvasactions',
  305. 'name' => 'canvasactions_file2canvas',
  306. 'data' => array(
  307. 'xpos' => 0,
  308. 'ypos' => 0,
  309. 'alpha' => '100',
  310. 'path' => 'module://image_effects_text_test/grid800x600.png',
  311. ),
  312. 'weight' => '2',
  313. ),
  314. 127 => array(
  315. 'label' => 'Tekst',
  316. 'help' => 'Add static or dynamic (coded) text to an image.',
  317. 'dimensions passthrough' => TRUE,
  318. 'form callback' => 'image_effects_text_form',
  319. 'effect callback' => 'image_effects_text_effect',
  320. 'summary theme' => 'image_effects_text_summary',
  321. 'module' => 'image_effects_text',
  322. 'name' => 'image_effects_text',
  323. 'data' => array(
  324. 'size' => '18',
  325. 'xpos' => '100',
  326. 'ypos' => '200',
  327. 'halign' => 'left',
  328. 'valign' => 'bottom',
  329. 'RGB' => array(
  330. 'HEX' => '000000',
  331. ),
  332. 'alpha' => '100',
  333. 'angle' => '45',
  334. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  335. 'text_source' => 'text',
  336. 'text' => '100,200 45 left,bottom',
  337. 'php' => 'return \'Hello World!\'',
  338. ),
  339. 'weight' => '3',
  340. ),
  341. 128 => array(
  342. 'label' => 'Tekst',
  343. 'help' => 'Add static or dynamic (coded) text to an image.',
  344. 'dimensions passthrough' => TRUE,
  345. 'form callback' => 'image_effects_text_form',
  346. 'effect callback' => 'image_effects_text_effect',
  347. 'summary theme' => 'image_effects_text_summary',
  348. 'module' => 'image_effects_text',
  349. 'name' => 'image_effects_text',
  350. 'data' => array(
  351. 'size' => '18',
  352. 'xpos' => '300',
  353. 'ypos' => '200',
  354. 'halign' => 'center',
  355. 'valign' => 'center',
  356. 'RGB' => array(
  357. 'HEX' => '000000',
  358. ),
  359. 'alpha' => '100',
  360. 'angle' => '66.67',
  361. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  362. 'text_source' => 'text',
  363. 'text' => '300,200 66.67 center,center',
  364. 'php' => 'return \'Hello World!\'',
  365. ),
  366. 'weight' => '4',
  367. ),
  368. 129 => array(
  369. 'label' => 'Tekst',
  370. 'help' => 'Add static or dynamic (coded) text to an image.',
  371. 'dimensions passthrough' => TRUE,
  372. 'form callback' => 'image_effects_text_form',
  373. 'effect callback' => 'image_effects_text_effect',
  374. 'summary theme' => 'image_effects_text_summary',
  375. 'module' => 'image_effects_text',
  376. 'name' => 'image_effects_text',
  377. 'data' => array(
  378. 'size' => '18',
  379. 'xpos' => '500',
  380. 'ypos' => '200',
  381. 'halign' => 'right',
  382. 'valign' => 'top',
  383. 'RGB' => array(
  384. 'HEX' => '000000',
  385. ),
  386. 'alpha' => '100',
  387. 'angle' => '90',
  388. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  389. 'text_source' => 'text',
  390. 'text' => '500,200 45 right,top',
  391. 'php' => 'return \'Hello World!\'',
  392. ),
  393. 'weight' => '5',
  394. ),
  395. 130 => array(
  396. 'label' => 'Tekst',
  397. 'help' => 'Add static or dynamic (coded) text to an image.',
  398. 'dimensions passthrough' => TRUE,
  399. 'form callback' => 'image_effects_text_form',
  400. 'effect callback' => 'image_effects_text_effect',
  401. 'summary theme' => 'image_effects_text_summary',
  402. 'module' => 'image_effects_text',
  403. 'name' => 'image_effects_text',
  404. 'data' => array(
  405. 'size' => '18',
  406. 'xpos' => '100',
  407. 'ypos' => '500',
  408. 'halign' => 'left',
  409. 'valign' => 'bottom',
  410. 'RGB' => array(
  411. 'HEX' => '000000',
  412. ),
  413. 'alpha' => '100',
  414. 'angle' => '-30',
  415. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  416. 'text_source' => 'text',
  417. 'text' => '100,500 -30 left,bottom',
  418. 'php' => 'return \'Hello World!\'',
  419. ),
  420. 'weight' => '7',
  421. ),
  422. 131 => array(
  423. 'label' => 'Tekst',
  424. 'help' => 'Add static or dynamic (coded) text to an image.',
  425. 'dimensions passthrough' => TRUE,
  426. 'form callback' => 'image_effects_text_form',
  427. 'effect callback' => 'image_effects_text_effect',
  428. 'summary theme' => 'image_effects_text_summary',
  429. 'module' => 'image_effects_text',
  430. 'name' => 'image_effects_text',
  431. 'data' => array(
  432. 'size' => '18',
  433. 'xpos' => '300',
  434. 'ypos' => '500',
  435. 'halign' => 'center',
  436. 'valign' => 'center',
  437. 'RGB' => array(
  438. 'HEX' => '000000',
  439. ),
  440. 'alpha' => '100',
  441. 'angle' => '-45',
  442. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  443. 'text_source' => 'text',
  444. 'text' => '300,500 -45 center,center',
  445. 'php' => 'return \'Hello World!\'',
  446. ),
  447. 'weight' => '8',
  448. ),
  449. 132 => array(
  450. 'label' => 'Tekst',
  451. 'help' => 'Add static or dynamic (coded) text to an image.',
  452. 'dimensions passthrough' => TRUE,
  453. 'form callback' => 'image_effects_text_form',
  454. 'effect callback' => 'image_effects_text_effect',
  455. 'summary theme' => 'image_effects_text_summary',
  456. 'module' => 'image_effects_text',
  457. 'name' => 'image_effects_text',
  458. 'data' => array(
  459. 'size' => '18',
  460. 'xpos' => '600',
  461. 'ypos' => '400',
  462. 'halign' => 'right',
  463. 'valign' => 'top',
  464. 'RGB' => array(
  465. 'HEX' => '000000',
  466. ),
  467. 'alpha' => '100',
  468. 'angle' => '-90',
  469. 'fontfile' => 'module://image_effects_text/Komika_display.ttf',
  470. 'text_source' => 'text',
  471. 'text' => '600,400 -90 right,top',
  472. 'php' => 'return \'Hello World!\'',
  473. ),
  474. 'weight' => '9',
  475. ),
  476. ),
  477. );
  478. // Exported image style: text-test-utf8-multi-line-color-transparency.
  479. $styles['text-test-utf8-multi-line-color-transparency'] = array(
  480. 'name' => 'text-test-utf8-multi-line-color-transparency',
  481. 'effects' => array(
  482. 133 => array(
  483. 'label' => 'Overlay (watermark)',
  484. 'help' => 'Choose the file image you wish to use as an overlay, and position it in a layer on top of the canvas.',
  485. 'effect callback' => 'canvasactions_file2canvas_image',
  486. 'dimensions passthrough' => TRUE,
  487. 'form callback' => 'canvasactions_file2canvas_form',
  488. 'summary theme' => 'canvasactions_file2canvas_summary',
  489. 'module' => 'imagecache_canvasactions',
  490. 'name' => 'canvasactions_file2canvas',
  491. 'data' => array(
  492. 'xpos' => 'left',
  493. 'ypos' => 'top',
  494. 'alpha' => '100',
  495. 'path' => 'module://image_effects_text_test/grid800x600.png',
  496. ),
  497. 'weight' => '-10',
  498. ),
  499. 114 => array(
  500. 'label' => 'Tekst',
  501. 'help' => 'Add static or dynamic (coded) text to an image.',
  502. 'dimensions passthrough' => TRUE,
  503. 'form callback' => 'image_effects_text_form',
  504. 'effect callback' => 'image_effects_text_effect',
  505. 'summary theme' => 'image_effects_text_summary',
  506. 'module' => 'image_effects_text',
  507. 'name' => 'image_effects_text',
  508. 'data' => array(
  509. 'size' => '20',
  510. 'xpos' => '100',
  511. 'ypos' => '100',
  512. 'halign' => 'left',
  513. 'valign' => 'top',
  514. 'RGB' => array(
  515. 'HEX' => 'FF0000',
  516. ),
  517. 'alpha' => '100',
  518. 'angle' => '0',
  519. 'fontfile' => 'sites/all/modules/imagecache_actions/image_effects_text/Komika_display.ttf',
  520. 'text_source' => 'text',
  521. 'text' => 'top+100,left+100: é è à ù ç Ö ÿ ‘ ’ “ ” ° ² ³ € x ÷',
  522. 'php' => 'if (!$image_context[\'entity\']) {
  523. return \'No referring entity\';
  524. }
  525. $entity_type = \'node\';
  526. $field_name = \'my_field\';
  527. $entity = $image_context[\'entity\'];
  528. $field = field_get_items($entity_type, $entity, $field_name);
  529. if ($field) {
  530. return isset($field[0][\'value\']) ? $field[0][\'value\'] : \'No field value\';
  531. }
  532. ',
  533. ),
  534. 'weight' => '-9',
  535. ),
  536. 135 => array(
  537. 'label' => 'Tekst',
  538. 'help' => 'Add static or dynamic (coded) text to an image.',
  539. 'dimensions passthrough' => TRUE,
  540. 'form callback' => 'image_effects_text_form',
  541. 'effect callback' => 'image_effects_text_effect',
  542. 'summary theme' => 'image_effects_text_summary',
  543. 'module' => 'image_effects_text',
  544. 'name' => 'image_effects_text',
  545. 'data' => array(
  546. 'size' => '50',
  547. 'xpos' => '100',
  548. 'ypos' => '200',
  549. 'halign' => 'left',
  550. 'valign' => 'top',
  551. 'RGB' => array(
  552. 'HEX' => '0000FF',
  553. ),
  554. 'alpha' => '90',
  555. 'angle' => '0',
  556. 'fontfile' => 'sites/all/modules/imagecache_actions/image_effects_text/Komika_display.ttf',
  557. 'text_source' => 'text',
  558. 'text' => 'Hello World!\\nOlá, mundo\\\\nHej världen',
  559. 'php' => 'if (!$image_context[\'entity\']) {
  560. return \'No referring entity\';
  561. }
  562. $entity_type = \'node\';
  563. $field_name = \'my_field\';
  564. $entity = $image_context[\'entity\'];
  565. $field = field_get_items($entity_type, $entity, $field_name);
  566. if ($field) {
  567. return isset($field[0][\'value\']) ? $field[0][\'value\'] : \'No field value\';
  568. }
  569. ',
  570. ),
  571. 'weight' => '-8',
  572. ),
  573. 134 => array(
  574. 'label' => 'Tekst',
  575. 'help' => 'Add static or dynamic (coded) text to an image.',
  576. 'dimensions passthrough' => TRUE,
  577. 'form callback' => 'image_effects_text_form',
  578. 'effect callback' => 'image_effects_text_effect',
  579. 'summary theme' => 'image_effects_text_summary',
  580. 'module' => 'image_effects_text',
  581. 'name' => 'image_effects_text',
  582. 'data' => array(
  583. 'size' => '50',
  584. 'xpos' => '400',
  585. 'ypos' => 'bottom-100',
  586. 'halign' => 'center',
  587. 'valign' => 'bottom',
  588. 'RGB' => array(
  589. 'HEX' => 'FFFFFF',
  590. ),
  591. 'alpha' => '50',
  592. 'angle' => '0',
  593. 'fontfile' => 'arial.ttf',
  594. 'text_source' => 'php',
  595. 'text' => 'Hello World!',
  596. 'php' => 'return "Hello World!\\nOlá, mundo\\\\nHej världen";
  597. ',
  598. ),
  599. 'weight' => '-7',
  600. ),
  601. ),
  602. );
  603. return $styles;
  604. }