summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2016-08-18 13:06:19 +0530
committerprashantsinalkar2016-08-18 13:06:19 +0530
commit3fc11eee503b5e4d3b462349cb56ed9d41340cfa (patch)
treed8aa6a68b2fe30eee0eab7102ae5da536a6bb583
parent636eb069fe164c7b35009ba0e5e39fad2e36a8b5 (diff)
downloadscilab_textbook_companion-3fc11eee503b5e4d3b462349cb56ed9d41340cfa.tar.gz
scilab_textbook_companion-3fc11eee503b5e4d3b462349cb56ed9d41340cfa.tar.bz2
scilab_textbook_companion-3fc11eee503b5e4d3b462349cb56ed9d41340cfa.zip
added email.inc
-rwxr-xr-xtextbook_companion.module11
1 files changed, 11 insertions, 0 deletions
diff --git a/textbook_companion.module b/textbook_companion.module
index ae950e0..97ff309 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -1,5 +1,6 @@
<?php
// $Id$
+require_once('email.inc');
/*
* Implementation of hook_menu().
*/
@@ -837,6 +838,16 @@ function _tbc_list_of_category($category_id = NULL)
} //$category_list_data = $category_list->fetchObject()
return $category;
}
+function _tbc_sentence_case($string)
+{
+ $string =ucwords(strtolower($string));
+ foreach (array('-', '\'') as $delimiter) {
+ if (strpos($string, $delimiter)!==false) {
+ $string =implode($delimiter, array_map('ucfirst', explode($delimiter, $string)));
+ }
+ }
+ return $string;
+}
function textbook_companion_init()
{
$path = drupal_get_path('module', 'textbook_companion');