/[drupal]/contributions/modules/scripturefilter/scripturefilter.module
ViewVC logotype

Diff of /contributions/modules/scripturefilter/scripturefilter.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8, Tue Aug 1 20:54:56 2006 UTC revision 1.8.4.1, Mon May 21 16:45:34 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: scripturefilter.module,v 1.7 2006/02/27 01:03:27 smsimms Exp $ */  /* $Id: scripturefilter.module,v 1.9 2007/02/25 00:13:22 smsimms Exp $ */
3    
4  function scripturefilter_help($section) {  function scripturefilter_help($section) {
5    switch ($section) {    switch ($section) {
# Line 25  function scripturefilter_filter($op, $de Line 25  function scripturefilter_filter($op, $de
25        return scripturize($text, variable_get("scripturefilter_default_translation_$format", DEFAULT_BIBLE_TRANSLATION));        return scripturize($text, variable_get("scripturefilter_default_translation_$format", DEFAULT_BIBLE_TRANSLATION));
26    
27      case 'settings':      case 'settings':
28        $form['filter_scripturefilter'] = array('#type' => 'fieldset',        $form['filter_scripturefilter'] = array(
29                                                '#title' => 'Scripture filter',          '#type' => 'fieldset',
30                                                '#collapsible' => TRUE,          '#title' => 'Scripture filter',
31                                                '#description' => t('This filter enables content that has a reference to Scripture to be linked to one of several online Bibles, such as BibleGateway, the ESV online Bible and the NET Bible.'));          '#collapsible' => TRUE,
32            '#description' => t('This filter enables content that has a reference to Scripture to be linked to one of several online Bibles, such as BibleGateway, the ESV online Bible and the NET Bible.')
33        $form['filter_scripturefilter']["scripturefilter_default_translation_$format"] =        );
34          array('#type' => 'select',  
35                '#title' => t('Default Bible translation'),        $form['filter_scripturefilter']["scripturefilter_default_translation_$format"] = array(
36                '#default_value' => variable_get("scripturefilter_default_translation_$format", DEFAULT_BIBLE_TRANSLATION),          '#type' => 'select',
37                '#options' => array("KJ21" => t("21st Century King James Version"),          '#title' => t('Default Bible translation'),
38                                    "ASV" => t("American Standard Version"),          '#default_value' => variable_get("scripturefilter_default_translation_$format", DEFAULT_BIBLE_TRANSLATION),
39                                    "AMP" => t("Amplified Bible"),          '#options' => array(
40                                    "CEV" => t("Contemporary English Version"),            "KJ21" => t("21st Century King James Version"),
41                                    "DARBY" => t("Darby Translation"),            "ASV" => t("American Standard Version"),
42                                    "ESV" => t("English Standard Version"),            "AMP" => t("Amplified Bible"),
43                                    "KJV" => t("King James Version"),            "CEV" => t("Contemporary English Version"),
44                                    "MSG" => t("The Message"),            "DARBY" => t("Darby Translation"),
45                                    "NASB" => t("New American Standard Bible"),            "ESV" => t("English Standard Version"),
46                                    "NET" => t("New English Translation"),            "KJV" => t("King James Version"),
47                                    "NIRV" => t("New International Reader's Version"),            "MSG" => t("The Message"),
48                                    "NIV" => t("New International Version"),            "NASB" => t("New American Standard Bible"),
49                                    "NIV-UK" => t("New International Version - UK"),            "NET" => t("New English Translation"),
50                                    "NKJV" => t("New King James Version"),            "NIRV" => t("New International Reader's Version"),
51                                    "NLT" => t("New Living Translation"),            "NIV" => t("New International Version"),
52                                    "TNIV" => t("Today's New International Version"),            "NIV-UK" => t("New International Version - UK"),
53                                    "WE" => t("Worldwide English New Testament"),            "NKJV" => t("New King James Version"),
54                                    "WYC" => t("Wycliffe New Testament"),            "NLT" => t("New Living Translation"),
55                                    "YLT" => t("Young's Literal Translation"),            "TNIV" => t("Today's New International Version"),
56                                    ),            "WE" => t("Worldwide English New Testament"),
57                );            "WYC" => t("Wycliffe New Testament"),
58              "YLT" => t("Young's Literal Translation"),
59            ),
60          );
61        return $form;        return $form;
62    
63      default:      default:

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.8.4.1

  ViewVC Help
Powered by ViewVC 1.1.2