Thanks, kh99.
For testing purposes,
I attach the following code to the "init_startup" hook
and get nothing:
PHP Code:
global $new_datastore_fetch;
if (!isset($new_datastore_fetch) || !is_array($new_datastore_fetch)) {
$new_datastore_fetch = array('customname');
} elseif (!in_array('customname', $new_datastore_fetch)) {
$new_datastore_fetch[] = 'customname';
}
print_r($vbulletin->customname);
At the same time, the following works
(even though I'd really wish to avoid using it for the sake of saving on a few db calls):
PHP Code:
$vbulletin->datastore->fetch(array('customname'));
print_r($vbulletin->customname);