summaryrefslogtreecommitdiff
path: root/add_xref_address.php
diff options
context:
space:
mode:
author"Lester Caine ext:(%22) <lester@lsces.co.uk>2011-07-07 18:50:02 +0100
committer"Lester Caine ext:(%22) <lester@lsces.co.uk>2011-07-07 18:50:02 +0100
commite4670d75b57ddee43ed2d66b85738068f11953c7 (patch)
treea4c56fc960822416d6974c16d34f5a28a1633eab /add_xref_address.php
parent8a6c1f21e542e546b623a36e7409ad0ce039bdd1 (diff)
downloadcontact-e4670d75b57ddee43ed2d66b85738068f11953c7.tar.gz
contact-e4670d75b57ddee43ed2d66b85738068f11953c7.tar.bz2
contact-e4670d75b57ddee43ed2d66b85738068f11953c7.zip
Move templates to their own selectable file so that add function can be built selectably.
Add_xref has been rebuilt to allow the correct template to display as a different format is selected.
Diffstat (limited to 'add_xref_address.php')
-rw-r--r--add_xref_address.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/add_xref_address.php b/add_xref_address.php
index b133ff5..6f4ed21 100644
--- a/add_xref_address.php
+++ b/add_xref_address.php
@@ -45,7 +45,11 @@ if( empty( $xrefInfo ) ) {
$xrefInfo['xref_type'] = $_REQUEST['xref_type'];
}
$xrefInfo['xref_type_list'] = $gContent->getXrefTypeList( 0, 'address' );
+// Don't use ckeditor for text fields '
$gContent->mInfo['format_guid'] = 'text';
+// Default dates for creating new record
+$xrefInfo['ignore_start_date'] = 'n';
+$xrefInfo['ignore_end_date'] = 'y';
$gBitSmarty->assign_by_ref( 'xrefInfo', $xrefInfo );
$gBitSmarty->assign_by_ref( 'title', $gContent->mInfo['title'] );