You are here

function iframe_token_values in Iframe 6

File

./iframe.module, line 704
Defines simple iframe field types. based on the cck-module "link" by quicksketch MODULE-Funtions

Code

function iframe_token_values($type, $object = NULL) {
  dmsg(3, 'func iframe_token_values');
  if ($type == 'field') {
    $item = $object[0];
    $tokens['url'] = $item['url'];
    $tokens['title'] = $item['title'];
    $tokens['view'] = isset($item['view']) ? $item['view'] : '';
    return $tokens;
  }
}