A new feature is being worked on for Strongarm (#870040: Provide hook to allow modules to define what variables they own) which would help manage variable exporting, it'd be great if Auto_NodeTitle could support it.

Comments

damienmckenna’s picture

Status: Active » Needs work
StatusFileSize
new2.87 KB
new2.96 KB

Here are patches for v6.x-1.x and v6.x-2.x. FYI for the v6.x-2.x patch I did not verify that all of the variables from v6.x-1.x are still used, will do so shortly.

damienmckenna’s picture

Both patches are missing several variables for core Drupal functionality, updated patches on the way.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new3.02 KB
new3.37 KB

Updated patches that cover all of the variables created via the settings pages when all core modules are enabled.

greggles’s picture

Nitpick: The module name is Pathauto, not PathAuto.

Bigger question: I'm in favor of this idea, but not sure I see the value of this hook. Ideally I'd prefer to use a variable pattern like path_redirect and comment_notify where the name of the variable AND its default value is returned by this function. Any reason that strongarm doesn't work like that? It makes this function much more useful in general and makes people more likely to use it. Is there time to change it?

damienmckenna’s picture

Care to raise the point in #870040: Provide hook to allow modules to define what variables they own (so we can centralize the discussion)?

dave reid’s picture

Status: Needs review » Closed (won't fix)

The patch in features seems to have been dropped. Going to close this out too.