Skip to content

Instantly share code, notes, and snippets.

@shadcn
Created April 5, 2016 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadcn/8bf23df99e0af0752432ea159244a436 to your computer and use it in GitHub Desktop.
Save shadcn/8bf23df99e0af0752432ea159244a436 to your computer and use it in GitHub Desktop.
<?php
/**
* Implements hook_forms().
*/
function node_ajax_loader_forms($form_id, $args) {
$forms = array();
if (strncmp($form_id, 'node_ajax_loader_form_', 22) === 0) {
$forms[$form_id] = array('callback' => 'node_ajax_loader_form');
}
return $forms;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment