Created
August 16, 2012 10:56
-
-
Save electricputty/3369262 to your computer and use it in GitHub Desktop.
params
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
/** ------------------------------------- | |
/** Initiate parameters and vars | |
/** -------------------------------------*/ | |
$params = array( | |
'entry_id' => '', | |
'url_title' => '', | |
'weblog_id' => '', | |
'weblog' => '', | |
'custom_field' => '', | |
'channel_id' => '', | |
'channel' => '', | |
'pages_uri' => '', | |
'show_error' => '', | |
'fallback' => '' | |
); | |
$field_id = FALSE; | |
$sql_select = 'title'; | |
/** ------------------------------------- | |
/** Loop through parameters, set value | |
/** -------------------------------------*/ | |
foreach ($params AS $key => $value) | |
{ | |
$params[$key] = $this->EE->TMPL->fetch_param($key); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment