Commit 41a181ae authored by Rich's avatar Rich

Initial commit

parents
This diff is collapsed.
# Action Links
Provides an API and an admin's UI to manage a set of links that trigger
Form Processor submissions and redirect to a success/denied URL.
The extension is licensed under [AGPL-3.0](LICENSE.txt).
## Requirements
* PHP v7.0+
* CiviCRM 5.20+ (probably earlier too)
## Installation (Web UI)
This extension has not yet been published for installation via the web UI.
## Installation (CLI, Zip)
Sysadmins and developers may download the `.zip` file for this extension and
install it with the command-line tool [cv](https://github.com/civicrm/cv).
```bash
cd <extension-dir>
cv dl actionlinks@https://github.com/FIXME/actionlinks/archive/master.zip
```
## Installation (CLI, Git)
Sysadmins and developers may clone the [Git](https://en.wikipedia.org/wiki/Git) repo for this extension and
install it with the command-line tool [cv](https://github.com/civicrm/cv).
```bash
git clone https://github.com/FIXME/actionlinks.git
cv en actionlinks
```
## Usage
(* FIXME: Where would a new user navigate to get started? What changes would they see? *)
## Known Issues
See Issue Queue.
This diff is collapsed.
<?php
require_once 'actionlinks.civix.php';
use CRM_Actionlinks_ExtensionUtil as E;
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function actionlinks_civicrm_config(&$config) {
_actionlinks_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_xmlMenu().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
*/
function actionlinks_civicrm_xmlMenu(&$files) {
_actionlinks_civix_civicrm_xmlMenu($files);
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function actionlinks_civicrm_install() {
_actionlinks_civix_civicrm_install();
}
/**
* Implements hook_civicrm_postInstall().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
*/
function actionlinks_civicrm_postInstall() {
_actionlinks_civix_civicrm_postInstall();
}
/**
* Implements hook_civicrm_uninstall().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
*/
function actionlinks_civicrm_uninstall() {
_actionlinks_civix_civicrm_uninstall();
}
/**
* Implements hook_civicrm_enable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
function actionlinks_civicrm_enable() {
_actionlinks_civix_civicrm_enable();
}
/**
* Implements hook_civicrm_disable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
*/
function actionlinks_civicrm_disable() {
_actionlinks_civix_civicrm_disable();
}
/**
* Implements hook_civicrm_upgrade().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
*/
function actionlinks_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
return _actionlinks_civix_civicrm_upgrade($op, $queue);
}
/**
* Implements hook_civicrm_managed().
*
* Generate a list of entities to create/deactivate/delete when this module
* is installed, disabled, uninstalled.
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed
*/
function actionlinks_civicrm_managed(&$entities) {
_actionlinks_civix_civicrm_managed($entities);
}
/**
* Implements hook_civicrm_caseTypes().
*
* Generate a list of case-types.
*
* Note: This hook only runs in CiviCRM 4.4+.
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_caseTypes
*/
function actionlinks_civicrm_caseTypes(&$caseTypes) {
_actionlinks_civix_civicrm_caseTypes($caseTypes);
}
/**
* Implements hook_civicrm_angularModules().
*
* Generate a list of Angular modules.
*
* Note: This hook only runs in CiviCRM 4.5+. It may
* use features only available in v4.6+.
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_angularModules
*/
function actionlinks_civicrm_angularModules(&$angularModules) {
_actionlinks_civix_civicrm_angularModules($angularModules);
}
/**
* Implements hook_civicrm_alterSettingsFolders().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders
*/
function actionlinks_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
_actionlinks_civix_civicrm_alterSettingsFolders($metaDataFolders);
}
/**
* Implements hook_civicrm_entityTypes().
*
* Declare entity types provided by this module.
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
*/
function actionlinks_civicrm_entityTypes(&$entityTypes) {
_actionlinks_civix_civicrm_entityTypes($entityTypes);
}
/**
* Implements hook_civicrm_thems().
*/
function actionlinks_civicrm_themes(&$themes) {
_actionlinks_civix_civicrm_themes($themes);
}
// --- Functions below this ship commented out. Uncomment as required. ---
/**
* Implements hook_civicrm_preProcess().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess
*
function actionlinks_civicrm_preProcess($formName, &$form) {
} // */
/**
* Implements hook_civicrm_navigationMenu().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu
*
function actionlinks_civicrm_navigationMenu(&$menu) {
_actionlinks_civix_insert_navigation_menu($menu, 'Mailings', array(
'label' => E::ts('New subliminal message'),
'name' => 'mailing_subliminal_message',
'url' => 'civicrm/mailing/subliminal',
'permission' => 'access CiviMail',
'operator' => 'OR',
'separator' => 0,
));
_actionlinks_civix_navigationMenu($menu);
} // */
<?xml version="1.0"?>
<extension key="actionlinks" type="module">
<file>actionlinks</file>
<name>Action Links</name>
<description>Provides special links that can trigger admin-defined actions before redirecting the browser to either a success or denied URL. e.g. you could record downloads of a PDF file this way.</description>
<license>AGPL-3.0</license>
<maintainer>
<author>Rich Lott / Artful Robot</author>
<email>forums@artfulrobot.uk</email>
</maintainer>
<urls>
<url desc="Main Extension Page">https://lab.civicrm.org/artfulrobot/actionlinks</url>
<url desc="Documentation">https://lab.civicrm.org/artfulrobot/actionlinks</url>
<url desc="Support">https://lab.civicrm.org/artfulrobot/actionlinks</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-02-17</releaseDate>
<version>1.0</version>
<develStage>alpha</develStage>
<compatibility>
<ver>5.0</ver>
<ver>5.24</ver>
</compatibility>
<comments></comments>
<civix>
<namespace>CRM/Actionlinks</namespace>
</civix>
</extension>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment