You are here

function media_watermark_prepare_names in Media watermark 7

Function to return watermark names array.

Parameters

array $results: watermarks array

Return value

array names array

1 call to media_watermark_prepare_names()
media_watermark_form_alter in ./media_watermark.module
Implements hook_form_alter().

File

./media_watermark.module, line 247
Watermark media module.

Code

function media_watermark_prepare_names($results) {
  $names = array();
  foreach ($results as $value) {
    $names[$value['fid']] = $value['name'];
  }
  return $names;
}