Commit 06c7ffa4 authored by Ingmar Schlecht's avatar Ingmar Schlecht
Browse files

* Added hook in t3lib_page for additional enableColumns


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@634 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 150d5b1e
......@@ -2,6 +2,7 @@
* Cleaned up tslib_content by putting some lines of redundant code into new function getMailTo()
* Minor change to spamProtectEmailAddresses ASCII
* Added hook in t3lib_page for additional enableColumns
2005-04-13 Karsten Dambekalns <karsten@typo3.org>
......
......@@ -914,6 +914,19 @@ class t3lib_pageSelect {
if (!strcmp($gr_list,'')) $gr_list=0;
$query.=' AND '.$field.' IN ('.$gr_list.')';
}
// Call hook functions for additional enableColumns
if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_page.php']['addEnableColumns'])) {
$_params = array(
'table' => $table,
'show_hidden' => $show_hidden,
'ignore_array' => $ignore_array,
'ctrl' => $ctrl
);
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_page.php']['addEnableColumns'] as $_funcRef) {
$query .= t3lib_div::callUserFunction($_funcRef,$_params,$this);
}
}
}
} else {
die ('NO entry in the $TCA-array for the table "'.$table.'". This means that the function enableFields() is called with an invalid table name as argument.');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment