### Eclipse Workspace Patch 1.0
#P vcard
Index: INSTALL.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vcard/INSTALL.txt,v
retrieving revision 1.6
diff -u -r1.6 INSTALL.txt
--- INSTALL.txt 24 Oct 2009 05:38:41 -0000 1.6
+++ INSTALL.txt 29 Oct 2009 11:10:04 -0000
@@ -4,28 +4,24 @@
1) Install Contact_Vcard_Build from PEAR:
$ pear install Contact_Vcard_Build
+
+ For more information on how to install PEAR and PEAR packages see
+ http://pear.php.net/manual/en/installation.php
+ http://pear.php.net/manual/en/guide.users.commandline.cli.php
-2) Enable vcard module on administer->modules
+2) Enable vcard module on Administer » Configuration and modules » Modules
+ (?q=admin/config/modules)
-3) Configure the profile field mappings on Administer->Site configuration->vCard (?q=admin/settings/vcard)
+3) Add some profile fields for use with vCard on Administer » Configuration and modules » People and permissions » Profiles
+ (?q=admin/config/people/profile)
-4) Configure the permissions on Administer->User management->Permissions (?q=admin/user/permissions)
+4) Configure the profile field mappings on Administer » Configuration and modules » People and permissions » vCard
+ (?q=admin/config/people/vcard)
-5) To enable hCard support in your theme, you can invoke theme_vcard($user) directly.
- eg, add the following to your theme template.php and your user page details will be formatted as a vcard.
+5) Configure the permissions on Administer » Configuration and modules » People and permissions » Permissions
+ (?q=admin/config/people/permissions)
- content);
- }
- }
- ?>
+5) To enable hCard support go to Administer » Configuration and modules » People and permissions » vCard
+ (?q=admin/config/people/vcard) and enabled the desired options.
- For additional information on themeing read the handbook pages http://drupal.org/theme-guide.
\ No newline at end of file
+6) To change the appearance of the hCard copy the file vcard.tpl.php to your theme's folder and modify it to your likings.
Index: vcard.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vcard/vcard.admin.inc,v
retrieving revision 1.3
diff -u -r1.3 vcard.admin.inc
--- vcard.admin.inc 27 Oct 2009 18:10:05 -0000 1.3
+++ vcard.admin.inc 29 Oct 2009 11:10:04 -0000
@@ -13,6 +13,23 @@
if (!_vcard_init()) {
drupal_set_message(t('The PEAR package Contact_Vcard_Build (required by vcard.module) has not been installed properly, please read INSTALL.txt.'), 'warning');
}
+ $form['display_options'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Display Options'),
+ '#markup' => t('To enable the display of hCard in Nodes, go to the !link administration section, choose the desired node type and alter the display settings.', array('!link' => l(t('Content types'), 'admin/structure/types'))),
+ );
+ $form['display_options']['vcard_profile_download'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Display vCard download link on profile page'),
+ '#description' => t('The vCard is a file format standard for electronic business cards.'),
+ '#default_value' => variable_get('vcard_profile_download', TRUE),
+ );
+ $form['display_options']['vcard_profile_hcard'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Display hCard on profile page'),
+ '#description' => t('The hCard microformat is a 1:1 representation of vCard.'),
+ '#default_value' => variable_get('vcard_profile_hcard', FALSE),
+ );
$options = array('' => t('