Hello, I need help getting over my first #AJAX bit. I have two MENU_LOCAL_TASKs that currently directly call some PHP functions.
<?php
// ui options for editing node with mobwrite
$items['node/%node/edit/all'] = array(
'title' => 'Share All',
'description ' => 'Share all of the fields - great for webforms.',
'page callback' => 'drupal_get_form',
'page arguments' => array('mobwrite_share_all'),
'access arguments' => array('access mobwrite'),
'type' => MENU_LOCAL_TASK,
'file' => 'mobwrite.func.inc',
);
// UI options for editing node with mobwrite
$items['node/%node/edit/url'] = array(
'title' => 'Share URL',
'description ' => 'Shares session by URL.',
'page callback' => 'drupal_get_form',
'page arguments' => array('mobwrite_share_url'),
'access arguments' => array('access mobwrite'),
'type' => MENU_LOCAL_TASK,
'file' => 'mobwrite.func.inc',
);
?>
For 'node/%node/edit/all' I want to replace the "Share All" text with "Stop Sharing" and add perhaps add a throbber.
For 'node/%node/edit/url' I need to present a link for the user to copy and send to collaborators. I do not have the functionality to generate the url yet, so right now I just want to add some text and replace 'Share URL' with 'Stop Sharing'.