Created
June 29, 2012 15:09
-
-
Save davist11/3018486 to your computer and use it in GitHub Desktop.
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
// Create some global variables so we can use snippets EVERYWHERE | |
$new_global_vars = array( | |
'gv_channel_disable_all' => 'disable="categories|category_fields|custom_fields|member_data|pagination|trackbacks"', | |
'gv_channel_disable_most' => 'disable="categories|category_fields|member_data|pagination|trackbacks"', | |
'gv_channel_disable_news' => 'disable=categories|category_fields|member_data|trackbacks"', | |
'gv_channel_disable_basic' => 'disable="member_data|pagination|trackbacks"', | |
'gv_channel_disable' => 'disable="member_data|trackbacks"', | |
'gv_date_format' => '%M %j, %Y' | |
); | |
global $assign_to_config; | |
if(!isset($assign_to_config['global_vars'])) { | |
$assign_to_config['global_vars'] = array(); | |
} | |
$assign_to_config['global_vars'] = array_merge($assign_to_config['global_vars'], $new_global_vars); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Heh, super quick reply there. Thanks so much man. :)