public function SocialContentInstagram::getRows in Social Content 7.2
Get the rows to import.
Parameters
mixed $last_id: The id of the last import.
Return value
array Array with the rows.
Overrides SocialContent::getRows
File
- modules/
instagram/ social_content_instagram.class.inc, line 247 - Social Content Instagram class.
Class
- SocialContentInstagram
- @file Social Content Instagram class.
Code
public function getRows($last_id = NULL) {
$settings = $this->settings['instance'];
$global_settings = $this->settings['global'];
$rows = array();
if (empty($global_settings['access_token'])) {
drupal_set_message(t('Error: Access Token is empty.'), 'error');
}
else {
if ($settings['type'] == 'hashtag') {
$rows = $this
->getRowsHashtag($settings, $global_settings, $last_id);
}
elseif ($settings['type'] == 'account') {
$rows = $this
->getRowsAccount($settings, $global_settings, $last_id);
}
}
return $rows;
}