content['links'] = array(
'#prefix' => '
',
'#weight' => -25,
);
$node->content['links']['expenses'] = theme('storm_link', 'stormorganization', 'stormexpense', $node->nid, $w++);
$node->content['links']['invoices'] = theme('storm_link', 'stormorganization', 'storminvoice', $node->nid, $w++);
$node->content['links']['notes'] = theme('storm_link', 'stormorganization', 'stormnote', $node->nid, $w++);
$node->content['links']['people'] = theme('storm_link', 'stormorganization', 'stormperson', $node->nid, $w++);
$node->content['links']['projects'] = theme('storm_link', 'stormorganization', 'stormproject', $node->nid, $w++);
$node->content['links']['tasks'] = theme('storm_link', 'stormorganization', 'stormtask', $node->nid, $w++);
$node->content['links']['tickets'] = theme('storm_link', 'stormorganization', 'stormticket', $node->nid, $w++);
$node->content['links']['timetrackings'] = theme('storm_link', 'stormorganization', 'stormtimetracking', $node->nid, $w++);
$node->content['group2'] = array(
'#prefix' => '',
'#suffix' => '
',
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'group2') : -19,
);
$node->content['group2'] ['fullname'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Fullname'), $node->fullname),
'#weight' => $w++,
);
$node->content['group3'] = array(
'#prefix' => '',
'#suffix' => '
',
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'group3') : -18,
);
$node->content['group3']['address'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Address'), $node->address),
'#weight' => 1,
);
$node->content['group3']['city'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('City'), $node->city),
'#weight' => 2,
);
$node->content['group3']['provstate'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Province / State'), $node->provstate),
'#weight' => 3,
);
$node->content['group3'] ['country'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Country'), $node->country),
'#weight' => 4,
);
$node->content['group3'] ['zip'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Zip'), $node->zip),
'#weight' => 5,
);
$node->content['group4'] = array(
'#prefix' => '',
'#suffix' => '
',
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'group4') : -17,
);
$node->content['group4']['phone'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Phone'), $node->phone),
'#weight' => 1,
);
$node->content['group4']['www'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('WWW'), l($node->www, 'http://'. $node->www, array('absolute' => TRUE))),
'#weight' => 2,
);
$node->content['group4']['email'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Email'), l($node->email, 'mailto:'. $node->email, array('absolute' => TRUE))),
'#weight' => 3,
);
$node->content['group5'] = array(
'#prefix' => '',
'#suffix' => '
',
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'group5') : -16,
);
$node->content['group5']['currency'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Currency'), $node->currency),
'#weight' => 1,
);
$languages = language_list('language', TRUE);
$languages_options = array();
foreach ($languages as $language_code => $language) {
$languages_options[$language_code] = $language->name;
}
$node->content['group5']['language'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Language'), $languages_options[$node->orglanguage]),
'#weight' => 2,
);
$node->content['group5'] ['taxid'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Tax ID'), $node->taxid),
'#weight' => 3,
);
$node->content['body_field'] = array(
'#prefix' => '',
'#suffix' => '
',
'#value' => theme('storm_view_item', t('Note'), $node->content['body']['#value']),
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'body_field') : 0,
);
unset($node->content['body']);
return $node;
}