Index: graphviz_filter.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/graphviz_filter/graphviz_filter.info,v
retrieving revision 1.1
diff -u -p -r1.1 graphviz_filter.info
--- graphviz_filter.info	17 Jan 2008 22:25:05 -0000	1.1
+++ graphviz_filter.info	6 Apr 2010 23:31:34 -0000
@@ -2,3 +2,6 @@
 name = Graphviz Filter
 description = "Treats input text as DOT syntax and passes it to dot, neato or other, embedding the output into the page."
 package = Filters
+core = 7.x
+files[] = graphviz_filter.module

Index: graphviz_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/graphviz_filter/graphviz_filter.module,v
retrieving revision 1.1
diff -u -p -r1.1 graphviz_filter.module
--- graphviz_filter.module	17 Jan 2008 22:25:05 -0000	1.1
+++ graphviz_filter.module	6 Apr 2010 23:31:34 -0000
@@ -8,25 +8,17 @@
 
 require_once('Image/GraphViz.php');
 
-function graphviz_filter_filter($op, $delta = 0, $format = -1, $text = '') {
-  if ($op == 'list') {
-    return array(
-      0 => t('Graphviz (DOT) syntax'),
-    );
-  }
-
-  if ($op == 'description') {
-    return t('Interprets text as DOT syntax and returns a PNG image of the generated graph.');
-  }
-
-  if ($op == 'process') {
-    return _graphviz_filter_process($text);
-  }
-
-  return $text;
+function graphviz_filter_filter_info() {
+  $filters['graphviz_filter'] = array(
+    'title' => t('Graphviz (DOT) syntax'),
+    'description' => t('Interprets text as DOT syntax and returns a PNG image of the generated graph.'),
+    'process callback' => '_graphviz_filter_process',
+    'tips callback'  => '_graphviz_filter_tips'
+  );
+  return $filters;
 }
 
-function graphviz_filter_filter_tips($delta, $format, $long = false) {
+function _graphviz_filter_tips($filter, $format, $long = false) {
   $output = t('Use <a href="@dot">DOT syntax</a> with some additional commands embedded in the comments.', array('@dot' => url('http://www.graphviz.org/Documentation.php')));
   if ($long) {
     $output .= t('<p />In the comments, you can specify additional arguments such as:<br />
@@ -44,7 +36,7 @@ function graphviz_filter_filter_tips($de
 function _graphviz_filter_process($text) {
   // Create a temporary file with the DOT script.
   $outdir = file_directory_path().'/graphviz';
-  file_check_directory($outdir, FILE_CREATE_DIRECTORY);
+  file_prepare_directory($outdir, FILE_CREATE_DIRECTORY);
   $inpath = System::mktemp();
   file_put_contents($inpath, $text);
 
Index: graphviz_formats.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/graphviz_filter/graphviz_formats.info,v
retrieving revision 1.1
diff -u -p -r1.1 graphviz_formats.info
--- graphviz_formats.info	17 Jan 2008 22:25:06 -0000	1.1
+++ graphviz_formats.info	6 Apr 2010 23:31:34 -0000
@@ -3,3 +3,6 @@ name = Graphviz Filter formats
 description = "Additional rendering formats for Graphviz Filter."
 dependencies = graphviz_filter
 package = Filters
+core = 7.x
+files[] = graphviz_formats.module

