Skip to content

Instantly share code, notes, and snippets.

@arjenblokzijl
Created July 12, 2016 09:19
Show Gist options
  • Save arjenblokzijl/22ed241d497ec5b9091c2e7c00ea33be to your computer and use it in GitHub Desktop.
Save arjenblokzijl/22ed241d497ec5b9091c2e7c00ea33be to your computer and use it in GitHub Desktop.
Basic Process Module Process
<?php
class ProcessReleases extends Process implements Module {
public static function getModuleInfo() {
return array(
'title' => "Releases",
'version' => "0.0.1",
'summary' => "Show releases for the mydatafactory application.",
'autoload' => false,
'singular' => true,
'installs' => array('Releases'),
'icon' => 'bookmark',
'page' => array(
'name' => 'releases',
'parent' => 'admin',
'title' => 'Releases',
),
'permission' => 'releases',
'permissions' => array('releases' => 'Releases'),
);
}
public function ___execute() {
return "Releases";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment