function image_ncck_photobucket_data in Embedded Media Field 5
File
- contrib/
image_ncck/ providers/ photobucket.inc, line 29
Code
function image_ncck_photobucket_data($field, $item) {
$data = array();
if (preg_match('![si]([^/.:@]+)\\.photobucket\\.com/albums/([^/]+)/([^/]+)/(\\?action=view¤t=)?(.+)$!i', $item['embed'], $matches)) {
$data = array(
'server' => $matches[1],
'album' => $matches[2],
'owner' => $matches[3],
'file' => $matches[5],
);
$data['title'] = image_ncck_photobucket_image_title($data['file'], $data);
}
return $data;
}