function linkedin_profile_theme in LinkedIn Integration 6
Same name and namespace in other branches
- 7 linkedin_profile/linkedin_profile.module \linkedin_profile_theme()
File
- linkedin_profile/linkedin_profile.module, line 181
- Main hooks implementation for LinkedIn Profile module
Code
function linkedin_profile_theme($existing, $type, $theme, $path) {
$return = array();
$return['linkedin_profile_user_page'] = array(
'arguments' => array(
'profile' => NULL,
),
'template' => 'linkedin-user-page',
);
$multiples = array(
'positions' => 'position',
'educations' => 'education',
);
foreach ($multiples as $key => $val) {
$return['linkedin_profile_user_page_' . $key] = array(
'arguments' => array(
$key => NULL,
),
'template' => 'linkedin-user-page-' . $key,
);
$return['linkedin_profile_user_page_' . $val . '_item'] = array(
'arguments' => array(
$val => NULL,
),
'template' => 'linkedin-user-page-' . $val . '-item',
);
}
$return['linkedin_profile_user_page_item'] = array(
'arguments' => array(
'item' => NULL,
),
'file' => 'linkedin_profile.theme.inc',
);
return $return;
}