Took a first stab at a simple strongarm.api.php, so folks wandering into this module can see how it works. Sorry about the non-patch, CVS issues this morning.

Comments

Grayside’s picture

Status: Active » Needs review

Oh.

joelstein’s picture

Status: Needs review » Needs work

Your documentation mentions "Context", which probably needs to be renamed to "Strongarm". Also, it should be noted that hook_ctools_plugin_api() needs to be included, so that Ctools knows to look in your module for the Strongarm hook. Something like this worked for me:

/**
 * Implementation of hook_ctools_plugin_api().
 */
function hook_ctools_plugin_api($module, $api) {
  if ($module == "strongarm" && $api == "strongarm") {
    return array("version" => 1);
  }
}
Grayside’s picture

Status: Needs work » Needs review
StatusFileSize
new1.88 KB

Certainly, correcting the typo makes sense. Note entirely sure about including hook_ctools_plugin_api(), but I suppose that kind of redundancy is a good thing.

joelstein’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me. Thanks!

Grayside’s picture

StatusFileSize
new1.95 KB

Updated for better doxygen standards and followed the Feeds example on documenting hook_ctools_plugin_api().

Grayside’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.