This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ignore_user_abort(true); | |
ini_set('max_execution_time', 600); | |
set_time_limit(0); | |
$node_type = 'story'; | |
//fetch the nodes we want to delete | |
$result = db_query('SELECT n.nid FROM {node} n WHERE n.type = :node_type', array(':node_type' => $node_type)); | |
foreach( $result as $row ){ | |
node_delete($row->nid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implementation of hook_ctools_plugin_api(). | |
* | |
* Inform CTools about version information for various plugins implemented by | |
* Panels. | |
* | |
* @param string $owner | |
* The system name of the module owning the API about which information is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// See this thread for more info: http://drupal.org/node/92861 | |
// Display our form | |
// Bumping up ex time to 5 minutes | |
ignore_user_abort(true); | |
ini_set('max_execution_time', 600); | |
set_time_limit(0); | |
print "<p>Note that it may take several minutes if you are deleting a lot of nodes.</p>"; | |
//Useful hack for quick and dirty pseudo-module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class RequestTrackerContent | |
*/ | |
class RequestTrackerContent | |
{ | |
private $queue_description; | |
private $queue_name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'RequestTracker/CNetIDChecker.inc.php'; | |
require_once 'RequestTracker/RequestTracker.inc.php'; | |
require_once 'RequestTracker/RequestTrackerContent.inc.php'; | |
/** | |
* Implements hook_form_alter() | |
* @param $form | |
* @param $form_state | |
* @param $form_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* https://gist.github.com/marktheunissen/2596787 | |
*/ | |
function oi_migrate_migrate_api() { | |
$api = array( | |
'api' => 2, | |
'groups' => array( |