It seems that there are two different paths for creating a node:
/admin/add/node/type
/add/nodel/type

(at least in my site (with admin_menu) there are this two options).

The function "apture_valid_editing_node();" checks the URL, but only for the second case. Inserting this line
if(!$is_content_add_or_edit_node){$is_content_add_or_edit_node = (arg(0) == 'admin' && (arg(1) == 'node') && (arg(2) == 'add') && in_array(arg(3), $node_types, true));}

in the function
apture_valid_editing_node(apture.module)
after the line

    $is_content_add_or_edit_node = (arg(0) == 'node' && ((arg(1) == 'add') || (arg(2) == 'edit')) && in_array($type, $node_types, true));

fixed the problem for me.

I'm not sure about it, but i think it should fix the "button"- issue.
I still opened a new thread as i'm insecure wether it's the same problem or not.

Comments

oerpli’s picture

Somehow i failed at formatting. I hope it's still clear what i've meant.

oerpli’s picture

Assigned: Unassigned » oerpli
Status: Active » Closed (fixed)