Download & Extend

Support for selectable menus that reference other (input format as example)

Project:Macro
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hey, I have been messing w/ the macro module as an easy way to setup a wysiwyg for clients (they all want it and I hate it :P ) Macro tends to not like it when the path is something like /edit/5 or has an array number that belongs to something else.

Here is an 3 step example: INPUT FORMATS

I want to create an input format (step 1), set an input format to default (step 2), then modify the settings of the input format (step 3).

Step 1: Adding the input format goes great.

Step 2: Set input format to default... might not work.

$macro[0]['form_id'] = 'filter_admin_overview';
$macro[0]['path'] = 'admin/settings/filters/list';
$macro[0]['values']  = array (
  'default' => '5',
);
$macro[0]['parameters']  = 'a:0:{}';

what if I'm loading this on a drupal install where my wysiwyg format is default => 3... then it doesnt work and gives me and error like below (way below).

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'filter_admin_format_form' was given in /home/myuser/devel.mysite.com/test/includes/form.inc on line 366.

Step 3: I also cant edit an input format for the same reasons.... the input format might be 3 (instead of 5) on a different drupal install
the default => 5

Any way around this?

nobody click here