summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordon Heydon2006-10-05 00:18:27 (GMT)
committer Gordon Heydon2006-10-05 00:18:27 (GMT)
commit47206f406b4c39be0d3a697cfcc007707a4bbc7d (patch)
tree4f09089f0768c517a16c6cd7fb1b71690297268a
parent823d0a07890fd401493278347d21da7cc77abfaa (diff)
- change all module_exist to module_exists for 5
-rw-r--r--views_bonus.module24
1 files changed, 12 insertions, 12 deletions
diff --git a/views_bonus.module b/views_bonus.module
index 0ddc131..90b3934 100644
--- a/views_bonus.module
+++ b/views_bonus.module
@@ -11,7 +11,7 @@ function views_bonus_help($section = NULL) {
*/
function views_bonus_views_style_plugins() {
$items = array();
- if (module_exist('panels')) {
+ if (module_exists('panels')) {
$items['panels_twocol_stk'] = array(
'name' => t('Panels: Teasers, 1 top + 2 columns'),
'theme' => 'views_bonus_panels_twocol_stacked',
@@ -45,7 +45,7 @@ function views_bonus_views_style_plugins() {
'theme' => 'views_bonus_summary_combo',
'summary_theme' => 'views_bonus_summary_combo_summary',
);
- if (module_exist('lineage') && module_exist('taxonomy')) {
+ if (module_exists('lineage') && module_exists('taxonomy')) {
$items['lineage_tree'] = array(
'name' => t('Lineage: Nested taxonomy summary'),
'theme' => 'views_bonus_lineage_tree',
@@ -65,7 +65,7 @@ function views_bonus_views_style_plugins() {
function theme_views_bonus_panels_twocol_stacked($view, $nodes, $type) {
$teasers = true;
$links = true;
- if (!module_exist('panels')) {
+ if (!module_exists('panels')) {
return theme('views_view_nodes', $view, $nodes, $type, $teasers, $links);
}
$content = array();
@@ -90,7 +90,7 @@ function theme_views_bonus_panels_twocol_stacked($view, $nodes, $type) {
function theme_views_bonus_panels_twocol($view, $nodes, $type) {
$teasers = true;
$links = true;
- if (!module_exist('panels')) {
+ if (!module_exists('panels')) {
return theme('views_view_nodes', $view, $nodes, $type, $teasers, $links);
}
$content = array();
@@ -112,7 +112,7 @@ function theme_views_bonus_panels_twocol($view, $nodes, $type) {
function theme_views_bonus_panels_threecol_stacked($view, $nodes, $type) {
$teasers = true;
$links = true;
- if (!module_exist('panels')) {
+ if (!module_exists('panels')) {
return theme('views_view_nodes', $view, $nodes, $type, $teasers, $links);
}
$content = array();
@@ -142,7 +142,7 @@ function theme_views_bonus_panels_threecol_stacked($view, $nodes, $type) {
function theme_views_bonus_panels_threecol($view, $nodes, $type) {
$teasers = true;
$links = true;
- if (!module_exist('panels')) {
+ if (!module_exists('panels')) {
return theme('views_view_nodes', $view, $nodes, $type, $teasers, $links);
}
$content = array();
@@ -239,7 +239,7 @@ function theme_views_bonus_lineage_tree($view, $nodes, $type) {
function theme_views_bonus_lineage_tree_summary($view, $type, $level, $nodes, $args) {
// if lineage info is missing or this summary has no tid, bail out to normal summary view
- if (!module_exist('lineage') || !module_exist('taxonomy') || !array_key_exists('tid', $nodes[0])) {
+ if (!module_exists('lineage') || !module_exists('taxonomy') || !array_key_exists('tid', $nodes[0])) {
return theme('views_summary', $view, $type, $level, $nodes, $args);
}
@@ -296,7 +296,7 @@ function theme_views_bonus_lineage_tree_summary($view, $type, $level, $nodes, $a
*/
function views_bonus_lineage_tree_branch_arg($op, &$query, $argtype, $arg = '') {
- if (!module_exist('lineage') || !module_exist('taxonomy')) {
+ if (!module_exists('lineage') || !module_exists('taxonomy')) {
return;
}
switch($op) {
@@ -329,7 +329,7 @@ function views_bonus_lineage_tree_branch_arg($op, &$query, $argtype, $arg = '')
// may be needed by other plugins
function views_bonus_views_query_alter(&$query, &$view, $summary, $level) {
- if ($view->page_type == 'lineage_tree' && module_exist('lineage') && module_exist('taxonomy')) {
+ if ($view->page_type == 'lineage_tree' && module_exists('lineage') && module_exists('taxonomy')) {
// these must be in taxonomy tree query for it to work correctly
if (!in_array('term_lineage.depth', $query->fields)) {
@@ -349,7 +349,7 @@ function views_bonus_views_query_alter(&$query, &$view, $summary, $level) {
function views_bonus_views_arguments() {
$arguments = array();
- if (module_exist('lineage') && module_exist('taxonomy')) {
+ if (module_exists('lineage') && module_exists('taxonomy')) {
$arguments = array(
'lineage_branch' => array(
'name' => t('Lineage: Term Branch'),
@@ -365,7 +365,7 @@ function views_bonus_views_arguments() {
// may be needed by other plugins
function views_bonus_views_default_views() {
- if (module_exist('taxonomy')) {
+ if (module_exists('taxonomy')) {
// this view takes advantage of the summary_combo plugin
$view = new stdClass();
$view->name = 'taxonomy_directory';
@@ -449,7 +449,7 @@ function views_bonus_views_default_views() {
$view->requires = array(term_data, node);
$views[$view->name] = $view;
}
- if (module_exist('lineage') && module_exist('taxonomy')) {
+ if (module_exists('lineage') && module_exists('taxonomy')) {
// this default view provides an example of the lineage tree plugin summary view
$view = new stdClass();
$view->name = 'taxonomy_tree';