Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
It is beta6. I looked into it further, and it was because the role was added programatically, which did not allow your module to hook and execute better_formats_new_role().
I will use drupal_execute() as a better way of adding my role, which should fire your required function.
Comments
Comment #1
dragonwize commentedI can not confirm this with beta6.
Are you sure you are running beta6? This was an issue with an older release.
Comment #2
mrthumpz commentedIt is beta6. I looked into it further, and it was because the role was added programatically, which did not allow your module to hook and execute better_formats_new_role().
I will use drupal_execute() as a better way of adding my role, which should fire your required function.
Comment #3
caspercash commentedi am experiencing this kind of problem now, may i know what you did to workaround this problem? and how you implemented the workaround? thanks!