. */ class CFDBIntegrationFSCF { /** * @var CF7DBPlugin */ var $plugin; /** * @param $plugin CF7DBPlugin */ function __construct($plugin) { $this->plugin = $plugin; } public function registerHooks() { add_action('fsctf_mail_sent', array(&$this->plugin, 'saveFormData')); add_action('fsctf_menu_links', array(&$this, 'fscfMenuLinks')); } /** * Function courtesy of Mike Challis, author of Fast Secure Contact Form. * Displays Admin Panel links in FSCF plugin menu * @return void */ public function fscfMenuLinks() { $displayName = $this->plugin->getPluginDisplayName(); echo '
' . $displayName . ' | ' . __('Database', 'contact-form-7-to-database-extension') . ' | ' . __('Database Options', 'contact-form-7-to-database-extension') . ' | ' . __('Build Shortcode', 'contact-form-7-to-database-extension') . ' | ' . __('Reference', 'contact-form-7-to-database-extension') . '
'; } }