This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If your site can be accessed both with and without the 'www.' prefix, you | |
# can use one of the following settings to redirect users to your preferred | |
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: | |
# | |
# To redirect all users to access the site WITH the 'www.' prefix, | |
# (http://example.com/... will be redirected to http://www.example.com/...) | |
# uncomment the following: | |
RewriteCond %{HTTP_HOST} . | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Implementation of hook_entity_view | |
*/ | |
function helpermodule_entity_view($entity, $type, $view_mode, $langcode) { | |
// we're viewing an entity | |
// check if it's a profile2 type | |
// - if there's more than one profile2, check for that too! | |
// - and the view mode is 'page' (not 'full', for profile2 it seems) | |
if ($type == 'profile2' && $entity->type == 'member' && $view_mode == 'page') { |
NewerOlder