function media_watermark_get_name in Media watermark 7
Function to get watermark name by id.
Parameters
string $id: watermark id
Return value
string watermark name
1 call to media_watermark_get_name()
- media_watermark_delete_form in includes/
media_watermark_delete.admin.inc - Form constructor for the media watermark delete form.
File
- ./
media_watermark.module, line 98 - Watermark media module.
Code
function media_watermark_get_name($id) {
$result = db_query('SELECT name FROM {media_watermark} WHERE wid = :wid', array(
':wid' => $id,
));
$result = $result
->fetchObject();
if (!empty($result)) {
$result = $result->name;
return $result;
}
}