i've just discovered the strongarm module, and it sounds great in theory!
i want to be able to store values for my database settings (variables) in code, and in writing this seems to fit the bill.
However when i implement hook_strongarm() in my module, nothing actually happens...

i have the following setup -
strongarm module enabled, on the admin settings page, i have 'force variable values'.

in my custom module i have -


function mymodule_strongarm(){
  $conf = array();

  $conf['site_slogan'] = 'Slogan';

  return $conf;
}

when i diabled and then re-enable my custom module i would expect the site slogan to be set to 'Slogan', however when i visit admin/settings/site-information the site slogan field remains blank. Any ideas?

Comments

tayzlor’s picture

Status: Active » Closed (fixed)

nvm, managed to fix the problem by flushing the cache, doh!