0

I am using the Journal module and in order to limit the forms its text box appears on the form ids have to go into a $conf variable. The docs say it has to go into settings.php but I don't watch that.

$conf['journal_form_ids'] = array(
    'fivestar_custom_widget' => 0,
    'guestbook_form_entry_form' => 0,
    'imagefield_js' => 0,
    'img_assist_header_form' => 0,
    'img_assist_properties_form' => 0,
    'link_widget_js' => 0,
    ...
);

Is there a module that can accomplish this from the admin interface? Can it be done through some kind of execute PHP form like with devel?

It has to be done from the admin

1 Answer 1

2

Sure, you can do this at devel/php if Devel module is enabled and you have access to Devel module's Execute PHP code.

The PHP to do what you want is

variable_set('journal_form_ids', array(
    'fivestar_custom_widget' => 0,
    'guestbook_form_entry_form' => 0,
    'imagefield_js' => 0,
    'img_assist_header_form' => 0,
    'img_assist_properties_form' => 0,
    'link_widget_js' => 0,
    // ...
  ));
2
  • I worked it out about 15 minutes ago. I needs to set up some answer notifications on SE ;)
    – vfclists
    Commented Feb 14, 2015 at 1:56
  • Mostly I use drush vset from CLI - worth looking into! Commented Feb 14, 2015 at 2:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.