118a119,136 > /* > * Implementation of hook_nodeapi() > * > * If the user submits a node edit form and the validation returns an error > * this function ensures that the smileys.js script is still loaded. > */ > function smileys_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { > if ($op == 'validate') { > $node_type = $node->type; > if (in_array($node_type, variable_get('smileys_node_types_content', array()), TRUE)) { > if (user_access('use smiley select box') && > variable_get('smileys_enable_for_nodes', 0)) { > _smileys_add_files(); > } > } > } > } >