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