Permalink
Browse files

Document hook_conduit_drupal_result_message().

  • Loading branch information...
1 parent a0a5f8a commit 9bc1d1f5a43138d4bf6cf63476bafe1530621e1b @boombatower committed Feb 3, 2011
Showing with 23 additions and 0 deletions.
  1. +23 −0 conduit_drupal.api.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * @file
+ * Document conduit_drupal hooks.
+ *
+ * @author Jimmy Berry ("boombatower", http://drupal.org/user/214218)
+ */
+
+/**
+ * Generate result summary message based on totals.
+ *
+ * @param $total
+ * Array of item type totals.
+ * @return
+ * Result summary message.
+ */
+function hook_conduit_drupal_result_message($total) {
+ return t('@type0 type 0, @type1 type 1, and @type2 type 2 messages.', array(
+ '@type0' => $total[0],
+ '@type1' => $total[1],
+ '@type2' => $total[2],
+ ));
+}

0 comments on commit 9bc1d1f

Please sign in to comment.