function alinks_nodeapi in Alinks 6
Implementation of hook_nodeapi().
File
- ./
alinks.module, line 114
Code
function alinks_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
case 'view':
$node_types = in_array($node->type, variable_get('alinks_node_types', array()), TRUE);
if ($node_types) {
drupal_add_css(drupal_get_path('module', 'alinks') . '/alinks.css');
$words = alinks_get_strings();
if ($words) {
$node->content['body']['#value'] = alinks_make_links($node->content['body']['#value'], $words);
}
}
break;
}
}