|
|
|
@ -17,60 +17,61 @@ function fulcrm_campaign_permission() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fulcrm_campaign_menu() {
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign',
|
|
|
|
|
'title' => 'fulcrm Campaigns',
|
|
|
|
|
'description' => 'Administer campaigns created in Drupal and pushed to fulcrm.',
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign/new' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_new',
|
|
|
|
|
'type' => MENU_LOCAL_ACTION,
|
|
|
|
|
'title' => 'Create a Campaign',
|
|
|
|
|
'description' => 'Create an fulcrm Campaign.',
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 1,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign/%' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_settings',
|
|
|
|
|
'title' => 'Settings',
|
|
|
|
|
'page arguments' => array( 5 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 1,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign/%/settings' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_settings',
|
|
|
|
|
'title' => 'Settings',
|
|
|
|
|
'type' => MENU_DEFAULT_LOCAL_TASK,
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'page arguments' => array( 5 ),
|
|
|
|
|
'weight' => 1,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign/%/sync' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_sync',
|
|
|
|
|
'title' => 'Sync to fulcrm',
|
|
|
|
|
'type' => MENU_DEFAULT_LOCAL_TASK,
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'page arguments' => array( 5 ),
|
|
|
|
|
'weight' => 10,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign/%/edit' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_edit',
|
|
|
|
|
'title' => 'Edit',
|
|
|
|
|
'type' => MENU_LOCAL_TASK,
|
|
|
|
|
'page arguments' => array( 5 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 2,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/config/services/fulcrm/campaign/%/delete' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_delete',
|
|
|
|
|
'title' => 'Delete',
|
|
|
|
|
'type' => MENU_LOCAL_TASK,
|
|
|
|
|
'page arguments' => array( 5 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 5,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign',
|
|
|
|
|
'title' => 'fulcrm Campaigns',
|
|
|
|
|
'description' => 'Administer campaigns created in Drupal and pushed to fulcrm.',
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'type' => MENU_LOCAL_TASK,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign/new' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_new',
|
|
|
|
|
'type' => MENU_LOCAL_ACTION,
|
|
|
|
|
'title' => 'Create a Campaign',
|
|
|
|
|
'description' => 'Create an fulcrm Campaign.',
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 1,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign/%' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_settings',
|
|
|
|
|
'title' => 'Settings',
|
|
|
|
|
'page arguments' => array( 4 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 1,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign/%/settings' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_settings',
|
|
|
|
|
'title' => 'Settings',
|
|
|
|
|
'type' => MENU_DEFAULT_LOCAL_TASK,
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'page arguments' => array( 4 ),
|
|
|
|
|
'weight' => 1,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign/%/sync' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_sync',
|
|
|
|
|
'title' => 'Sync to fulcrm',
|
|
|
|
|
'type' => MENU_LOCAL_TASK,
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'page arguments' => array( 4 ),
|
|
|
|
|
'weight' => 10,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign/%/edit' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_edit',
|
|
|
|
|
'title' => 'Edit',
|
|
|
|
|
'type' => MENU_LOCAL_TASK,
|
|
|
|
|
'page arguments' => array( 4 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 2,
|
|
|
|
|
);
|
|
|
|
|
$items[ 'admin/content/fulcrm/campaign/%/delete' ] = array( 'page callback' => 'fulcrm_campaign_admin_campaign_delete',
|
|
|
|
|
'title' => 'Delete',
|
|
|
|
|
'type' => MENU_LOCAL_TASK,
|
|
|
|
|
'page arguments' => array( 4 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|
'file' => 'fulcrm_campaign.admin.inc',
|
|
|
|
|
'weight' => 5,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$items[ 'node/%node/fulcrm/campaign' ] = array( 'title' => 'Mailshot',
|
|
|
|
|
$items[ 'node/%node/fulcrm/campaign' ] = array( 'title' => 'fulcrm Campaign',
|
|
|
|
|
'page callback' => 'fulcrm_campaign_admin_campaign_node',
|
|
|
|
|
'page arguments' => array( 1 ),
|
|
|
|
|
'access arguments' => array('build fulcrm campaign'),
|
|
|
|
|