Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'my_custom_function' not found or invalid function name in FacesExtendable->__call() (line 123 of /Applications/AMPPS/www/drupal/profiles/commerce_kickstart/modules/contrib/rules/includes/faces.inc).

Comments

jahubego created an issue. See original summary.

jahubego’s picture

kaarele’s picture

I'm having the same issue, when using hook_rules_action_info_alter and writing something like $actions['commerce_cart_add_to_cart_message']['callbacks']['execute'] = 'my_custom_function';

EDIT: Nevermind, my mistake was that the function was in my_module.rules.inc file, which was apparently not loaded when this function is running in the rules module. I put it in my_module.module and it started working without the error.

TR’s picture

Status: Active » Closed (works as designed)

EDIT: Nevermind, my mistake