| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id$ |
// $Id: resume.module,v 1.5 2007/04/27 23:16:55 kbahey Exp $ |
| 4 |
|
|
| 5 |
// Copyright 2006 http://2bits.com |
// Copyright 2006 http://2bits.com |
| 6 |
|
|
| 7 |
|
/** |
| 8 |
|
* @file |
| 9 |
|
* Defines a resume content type. |
| 10 |
|
*/ |
| 11 |
|
|
| 12 |
define('RESUME_NODE_TYPE', 'resume_node_type_'); |
define('RESUME_NODE_TYPE', 'resume_node_type_'); |
| 13 |
|
|
| 14 |
function resume_help($section) { |
function resume_help($section) { |
| 40 |
'#title' => t('Enable resume for these content types'), |
'#title' => t('Enable resume for these content types'), |
| 41 |
); |
); |
| 42 |
|
|
| 43 |
foreach(node_get_types() as $type => $name) { |
foreach (node_get_types() as $type => $name) { |
| 44 |
$form[$set][RESUME_NODE_TYPE . $type] = array( |
$form[$set][RESUME_NODE_TYPE . $type] = array( |
| 45 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 46 |
'#title' => $type, |
'#title' => $type, |
| 58 |
|
|
| 59 |
function theme_resume_search_item($item) { |
function theme_resume_search_item($item) { |
| 60 |
$output .= '<div id="resume_search">'; |
$output .= '<div id="resume_search">'; |
| 61 |
$output .= l($item['title'], $item['link']) . '<br />'; |
$output .= l($item['title'], $item['link']) .'<br />'; |
| 62 |
$output .= $item['snippet']. '<br />'; |
$output .= $item['snippet'] .'<br />'; |
| 63 |
$output .= $item['user'] . ' | ' . format_date($item['date'], 'small'). '<br /><br />'; |
$output .= $item['user'] .' | '. format_date($item['date'], 'small') .'<br /><br />'; |
| 64 |
$output .= '</div>'; |
$output .= '</div>'; |
| 65 |
|
|
| 66 |
return $output ; |
return $output ; |